public class HTTPContentType
extends java.lang.Object
Constructor and Description |
---|
HTTPContentType(java.lang.String httpHeaderFieldValue)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCharset()
Get the charset.
|
java.lang.String |
getExtension()
Get the extension.
|
java.lang.String |
getMimeType()
Get the MIME type.
|
JsonObject |
toJsonObject()
Get a JSON object of this instance.
|
public HTTPContentType(java.lang.String httpHeaderFieldValue)
httpHeaderFieldValue
- the value of the HTTP header filed "Content-Type", or null if no such header field is presentpublic java.lang.String getMimeType()
public java.lang.String getExtension()
public java.lang.String getCharset()
public JsonObject toJsonObject()