|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jetspeed.util.MimeType
Utility class for declaring MIME types to use for various requests and provide utility manipulation methods.
Added Content-Encoding capability, with defaults
Field Summary | |
static MimeType |
HTML
|
static MimeType |
VXML
|
static MimeType |
WML
|
static MimeType |
XHTML
|
static MimeType |
XML
|
Constructor Summary | |
MimeType(java.lang.String mimeType)
|
|
MimeType(java.lang.String mimeType,
java.lang.String charSet)
|
Method Summary | |
boolean |
equals(java.lang.Object obj)
Compare one MimeType to another |
java.lang.String |
getCharSet()
Return the character encoding associated, if any |
java.lang.String |
getCode()
Extracts from this MimeType a user-friendly identifying code ie "html" for "text/html" or "wml" for "text/vnd.wap.wml" |
java.lang.String |
getContentType()
Return the media type associated |
java.lang.String |
toString()
Convert this MimeType to its external String representation |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final MimeType HTML
public static final MimeType XHTML
public static final MimeType WML
public static final MimeType XML
public static final MimeType VXML
Constructor Detail |
public MimeType(java.lang.String mimeType)
public MimeType(java.lang.String mimeType, java.lang.String charSet)
Method Detail |
public java.lang.String getCode()
public java.lang.String getContentType()
public java.lang.String getCharSet()
public java.lang.String toString()
public boolean equals(java.lang.Object obj)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |