|
Apache Tomcat 6.0.51 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tomcat.util.http.ContentType
public class 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
|
Apache Tomcat 6.0.51 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||