MediaTypeFactoryLookup.MutableMediaTypeFactoryLookuppublic interface MediaTypeFactoryLookup
| Modifier and Type | Interface | Description |
|---|---|---|
static interface |
MediaTypeFactoryLookup.MutableMediaTypeFactoryLookup |
Adds functionality to modify the
MediaTypeFactoryLookup e.g. |
| Modifier and Type | Method | Description |
|---|---|---|
MediaType[] |
getFactoryMediaTypes() |
Returns the currently supported
MediaTypes as of the
MediaTypeFactory instances being added and in the order of them
being added. |
default boolean |
hasMediaTypeFactory(MediaType aMediaType) |
Determines whether there is a
MediaTypeFactory for the given
MediaType. |
MediaTypeFactory |
toMediaTypeFactory(MediaType aMediaType) |
Retrieves the
MediaTypeFactory related to the given
MediaType or null if there is none such MediaTypeFactory. |
MediaTypeFactory toMediaTypeFactory(MediaType aMediaType)
MediaTypeFactory related to the given
MediaType or null if there is none such MediaTypeFactory.aMediaType - the media typeMediaTypeFactory or null if there is none
such.default boolean hasMediaTypeFactory(MediaType aMediaType)
MediaTypeFactory for the given
MediaType.aMediaType - the media typeMediaTypeFactory responsible for
the given MediaType, else false.MediaType[] getFactoryMediaTypes()
MediaTypes as of the
MediaTypeFactory instances being added and in the order of them
being added. The order is important as the first MediaType found
in the returned array may be used as default MediaType e.g. when
no Content-Type has been specified.MediaTypes in the order of the
MediaTypeFactory instance having been added.Copyright © 2018. All rights reserved.