public final class ContentType extends Object
Copyright (c) SAP AG 2001-2003
Modifier and Type | Field and Description |
---|---|
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 |
Modifier and Type | Method and Description |
---|---|
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) |
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
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 parameterpublic String toString()
Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2018 SAP AG Complete Copyright Notice