|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.semanticdesktop.aperture.accessor.http.ContentType
public class ContentType
A utility class for working with mimeTypes and content type headers.
Field Summary | |
---|---|
static String |
CHARSET_KEY
The used with the parameters Map to obtain the charset |
Constructor Summary | |
---|---|
ContentType(String contentType)
Creates a new ContentType object for the header field value. |
Method Summary | |
---|---|
String |
getCharset()
Returns the charset. |
String |
getMimeType()
Returns the mime type |
static String |
getMimeType(String contentType)
Extracts the mime type from a content type header. |
String |
getParameter(String key)
Returns the parameter with the given key |
Map |
getParameters()
Returns a map of all parameters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CHARSET_KEY
Constructor Detail |
---|
public ContentType(String contentType)
contentType
- A Content-Type header field value.Method Detail |
---|
public static String getMimeType(String contentType)
contentType
- the contentType
public String getMimeType()
public String getParameter(String key)
key
- the key
public Map getParameters()
public String getCharset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |