public final class MediaType
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static MediaType |
APPLICATION_JSON
The "application/json" media type.
|
static MediaType |
APPLICATION_XML
The "application/xml" media type.
|
private java.lang.String |
subtype
The subtype.
|
private java.lang.String |
type
The type.
|
Constructor and Description |
---|
MediaType(java.lang.String aType,
Creates a new instance of MediaType.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object aOther) |
java.lang.String |
getSubtype()
Getter for property subtype.
|
java.lang.String |
getType()
Getter for property type.
|
int |
hashCode() |
java.lang.String |
toString() |
static MediaType |
valueOf(java.lang.String aString)
Creates an instance of the MediaType from a string.
|
aType
- The type.aSubtype
- The subtype.hashCode
in class java.lang.Object
Object.hashCode()
equals
in class java.lang.Object
Object.equals(java.lang.Object)
toString
in class java.lang.Object
Object.toString()
aString
- The string.