|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.wcm.util.http.ContentType
HTTP Content Type: mime type + optional encoding.
Copyright (c) SAP AG 2001-2003
| Field Summary | |
static ContentType |
APPLICATION_OCTET_STREAM
|
static ContentType |
APPLICATION_PDF
|
static ContentType |
APPLICATION_XML
|
static ContentType |
TEXT_HTML
|
static ContentType |
TEXT_PLAIN
|
static ContentType |
TEXT_XML
|
static ContentType |
TEXT_XML_UTF8
|
| Method Summary | |
boolean |
equals(Object obj)
|
String |
getContentType()
Get the HTTP Content-Type header value. |
String |
getEncoding()
Get the Encoding/Charset if defined. |
String |
getMimeType()
Get the Mime Type. |
int |
hashCode()
|
boolean |
isSameMimeType(ContentType other)
|
static String |
mapEncoding(String encoding)
|
String |
toString()
Get a string representation, suitable for HTTP Content-Type header field. |
static ContentType |
valueOf(String contentType)
|
static ContentType |
valueOf(String mimeType,
String encoding)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final ContentType APPLICATION_OCTET_STREAM
public static final ContentType APPLICATION_XML
public static final ContentType APPLICATION_PDF
public static final ContentType TEXT_HTML
public static final ContentType TEXT_PLAIN
public static final ContentType TEXT_XML
public static final ContentType TEXT_XML_UTF8
| Method Detail |
public static final String mapEncoding(String encoding)
public static ContentType valueOf(String contentType)
public static ContentType valueOf(String mimeType,
String encoding)
public String getContentType()
public String getMimeType()
public String getEncoding()
null if not definedpublic boolean isSameMimeType(ContentType other)
other - TBD: Description of the incoming method parameter
public String toString()
public int hashCode()
public boolean equals(Object obj)
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||