|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tomcat.util.http.ContentType
Usefull methods for Content-Type processing
Constructor Summary | |
ContentType()
|
Method Summary | |
static java.lang.String |
getCharsetFromContentType(java.lang.String contentType)
Parse the character encoding from the specified content type header. |
static boolean |
hasCharset(java.lang.String type)
Returns true if the given content type contains a charset component, false otherwise. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ContentType()
Method Detail |
public static java.lang.String getCharsetFromContentType(java.lang.String contentType)
null
is returned.
contentType
- a content type headerpublic static boolean hasCharset(java.lang.String type)
type
- Content type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |