Modifier and Type | Method and Description |
---|---|
static MediaType |
MediaType.fromHttpMediaSubtype(String aHttpMediaSubtype)
Retrieves the
MediaType representing the provided HTTP Media-Type
(ignoring the case). |
static MediaType[] |
MediaType.fromTopLevelType(TopLevelType aTopLevelType)
Returns all herein defined
MediaType elements belonging to the
given TopLevelType . |
MediaType[] |
MediaTypeFactoryLookup.getFactoryMediaTypes()
Returns the currently supported
MediaType s as of the
MediaTypeFactory instances being added and in the order of them
being added. |
MediaType |
ApplicationJsonFactory.getMediaType()
Retrieves the Media-Type from the Media-Type property.
|
MediaType |
ApplicationYamlFactory.getMediaType()
Retrieves the Media-Type from the Media-Type property.
|
MediaType |
TextPlainFactory.getMediaType()
Retrieves the Media-Type from the Media-Type property.
|
MediaType |
ContentTypeImpl.getMediaType()
Retrieves the Media-Type from the Media-Type property.
|
MediaType |
MediaTypeAccessor.getMediaType()
Retrieves the Media-Type from the Media-Type property.
|
MediaType |
ApplicationXmlFactory.getMediaType()
Retrieves the Media-Type from the Media-Type property.
|
MediaType |
TextXmlFactory.getMediaType()
Retrieves the Media-Type from the Media-Type property.
|
MediaType |
ApplicationFormFactory.getMediaType()
Retrieves the Media-Type from the Media-Type property.
|
static MediaType |
MediaType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MediaType[] |
MediaType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
default boolean |
MediaTypeFactoryLookup.hasMediaTypeFactory(MediaType aMediaType)
Determines whether there is a
MediaTypeFactory for the given
MediaType . |
default ContentType |
HeaderFields.putContentType(MediaType aMediaType,
Map<String,String> aParameters)
Sets the Content-Type entity-Header-Field
HeaderField.CONTENT_TYPE . :
"... |
void |
MediaTypeAccessor.MediaTypeMutator.setMediaType(MediaType aMediaType)
Sets the Media-Type for the Media-Type property.
|
MediaTypeFactory |
MediaTypeFactoryLookup.toMediaTypeFactory(MediaType aMediaType)
Retrieves the
MediaTypeFactory related to the given
MediaType or null if there is none such MediaTypeFactory . |
default B |
HeaderFields.withContentType(MediaType aMediaType,
Map<String,String> aParameters)
Sets the Content-Type's
MediaType and the parameters for the HTTP
body. |
B |
MediaTypeAccessor.MediaTypeBuilder.withMediaType(MediaType aMediaType)
Sets the Media-Type for the Media-Type property.
|
Constructor and Description |
---|
ContentTypeImpl(MediaType aMediaType)
|
ContentTypeImpl(MediaType aMediaType,
Map<String,String> aProperties)
Instantiates a new content type impl.
|
Copyright © 2018. All rights reserved.