|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jetspeed.util.MimeType
public class 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 | |
---|---|
private String |
charSet
null value means default encoding. |
static MimeType |
HTML
|
private String |
mimeType
Standard ContentType String, with no encoding appended. |
static MimeType |
VXML
|
static MimeType |
WML
|
static MimeType |
XHTML
|
static MimeType |
XML
|
Constructor Summary | |
---|---|
MimeType(String mimeType)
|
|
MimeType(String mimeType,
String charSet)
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
Compare one MimeType to another |
String |
getCharSet()
Return the character encoding associated, if any |
String |
getCode()
Extracts from this MimeType a user-friendly identifying code ie "html" for "text/html" or "wml" for "text/vnd.wap.wml" |
String |
getContentType()
Return the media type associated |
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
private String mimeType
private String charSet
Constructor Detail |
---|
public MimeType(String mimeType)
public MimeType(String mimeType, String charSet)
Method Detail |
---|
public String getCode()
public String getContentType()
public String getCharSet()
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |