public interface MediaTypeFactoryLookup
Modifier and Type | Interface and Description |
---|---|
static interface |
MediaTypeFactoryLookup.MutableMediaTypeFactoryLookup
Adds functionality to modify the
MediaTypeFactoryLookup e.g. |
Modifier and Type | Method and Description |
---|---|
MediaType[] |
getFactoryMediaTypes()
Returns the currently supported
MediaType s 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 a media typeMediaTypeFactory
or null if there is none
such.default boolean hasMediaTypeFactory(MediaType aMediaType)
MediaTypeFactory
for the given
MediaType
.aMediaType
- the a media typeMediaTypeFactory
responsible for
the given MediaType
, else false.MediaType[] getFactoryMediaTypes()
MediaType
s 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.MediaType
s in the order of the
MediaTypeFactory
instance having been added.Copyright © 2017. All rights reserved.