Uses of Class
org.refcodes.web.MediaType
-
-
Uses of MediaType in org.refcodes.web
Methods in org.refcodes.web that return MediaType Modifier and Type Method Description static MediaType
MediaType. fromHttpMediaSubtype(String aHttpMediaSubtype)
Retrieves theMediaType
representing the provided HTTP Media-Type (ignoring the case).static MediaType[]
MediaType. fromTopLevelType(TopLevelType aTopLevelType)
Returns all herein definedMediaType
elements belonging to the givenTopLevelType
.MediaType[]
MediaTypeFactoryLookup. getFactoryMediaTypes()
Returns the currently supportedMediaType
s as of theMediaTypeFactory
instances being added and in the order of them being added.MediaType
ContentType. getMediaType()
Retrieves the Media-Type from the Media-Type property.MediaType
MediaTypeAccessor. getMediaType()
Retrieves the Media-Type from the Media-Type property.MediaType[]
FormMediaTypeFactory. getMediaTypes()
Retrieves the Media-Types from the Media-Types property.MediaType[]
HtmlMediaTypeFactory. getMediaTypes()
Retrieves the Media-Types from the Media-Types property.MediaType[]
JsonMediaTypeFactory. getMediaTypes()
Retrieves the Media-Types from the Media-Types property.MediaType[]
MediaTypesAccessor. getMediaTypes()
Retrieves the Media-Types from the Media-Types property.MediaType[]
TextMediaTypeFactory. getMediaTypes()
Retrieves the Media-Types from the Media-Types property.MediaType[]
XmlMediaTypeFactory. getMediaTypes()
Retrieves the Media-Types from the Media-Types property.MediaType[]
YamlMediaTypeFactory. getMediaTypes()
Retrieves the Media-Types from the Media-Types property.default MediaType
MediaTypeAccessor.MediaTypeProperty. letMediaType(MediaType aMediaType)
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the givenMediaType
(setter) as ofMediaTypeAccessor.MediaTypeMutator.setMediaType(MediaType)
and returns the very same value (getter).default MediaType[]
MediaTypesAccessor.MediaTypesProperty. letMediaTypes(MediaType[] aMediaTypes)
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the givenMediaType
array (setter) as ofMediaTypesAccessor.MediaTypesMutator.setMediaTypes(MediaType[])
and returns the very same value (getter).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.Methods in org.refcodes.web with parameters of type MediaType Modifier and Type Method Description default boolean
MediaTypeFactoryLookup. hasMediaTypeFactory(MediaType aMediaType)
Determines whether there is aMediaTypeFactory
for the givenMediaType
.default MediaType
MediaTypeAccessor.MediaTypeProperty. letMediaType(MediaType aMediaType)
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the givenMediaType
(setter) as ofMediaTypeAccessor.MediaTypeMutator.setMediaType(MediaType)
and returns the very same value (getter).default MediaType[]
MediaTypesAccessor.MediaTypesProperty. letMediaTypes(MediaType[] aMediaTypes)
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the givenMediaType
array (setter) as ofMediaTypesAccessor.MediaTypesMutator.setMediaTypes(MediaType[])
and returns the very same value (getter).default ContentType
HeaderFields. putContentType(MediaType aMediaType, Map<String,String> aParameters)
Sets the Content-Type entity-Header-FieldHeaderField.CONTENT_TYPE
. : "...void
MediaTypeAccessor.MediaTypeMutator. setMediaType(MediaType aMediaType)
Sets the Media-Type for the Media-Type property.void
MediaTypesAccessor.MediaTypesMutator. setMediaTypes(MediaType[] aMediaTypes)
Sets the Media-Types for the Media-Types property.MediaTypeFactory
MediaTypeFactoryLookup. toMediaTypeFactory(MediaType aMediaType)
Retrieves theMediaTypeFactory
related to the givenMediaType
or null if there is none suchMediaTypeFactory
.default B
HeaderFields. withContentType(MediaType aMediaType, Map<String,String> aParameters)
Sets the Content-Type'sMediaType
and the parameters for the HTTP body.B
MediaTypeAccessor.MediaTypeBuilder. withMediaType(MediaType aMediaType)
Sets the Media-Type for the Media-Type property.B
MediaTypesAccessor.MediaTypesBuilder. withMediaTypes(MediaType[] aMediaTypes)
Sets the Media-Types for the Media-Types property.Constructors in org.refcodes.web with parameters of type MediaType Constructor Description ContentType(MediaType aMediaType)
ContentType(MediaType aMediaType, Map<String,String> aProperties)
Instantiates a new content type impl.
-