|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.net.ContentType
public class ContentType
A ContentType consists of a mime-type, a character encoding and an optional set of parameters.
| Field Summary | |
|---|---|
static String |
CHARSET_KEY
|
| Constructor Summary | |
|---|---|
ContentType(String contentType)
Creates a new ContentType object for the header field value. |
|
| Method Summary | |
|---|---|
String |
getCharset()
Get the character encoding |
String |
getMimeType()
Get the mime-type. |
static String |
getMimeType(String contentType)
Extracts the MIME type from a content type header. |
String |
getParameter(String key)
Get the parameter value for the specified key |
Map<String,String> |
getParameters()
Get the 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)
public String getMimeType()
public String getParameter(String key)
key - the key to look up
public Map<String,String> getParameters()
public String getCharset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||