Package de.smartsquare.squit.mediatype
Object MediaTypeFactory
-
- All Implemented Interfaces:
public class MediaTypeFactoryObject for retrieving media type specific values.
-
-
Field Summary
Fields Modifier and Type Field Description private final MediaTypexmlMediaTypeprivate final MediaTypeapplicationXmlMediaTypeprivate final MediaTypesoapMediaTypeprivate final MediaTypejsonMediaTypepublic final static MediaTypeFactoryINSTANCE
-
Method Summary
Modifier and Type Method Description final Stringrequest(MediaType mediaType)Returns the request name based on the given mediaType. final StringsourceResponse(MediaType mediaType)Returns the source response name based on the given mediaType. final StringexpectedResponse(MediaType mediaType)Returns the expected response name based on the given mediaType. final StringactualResponse(MediaType mediaType)Returns the actual response name based on the given mediaType. final BodyProcessorprocessor(MediaType mediaType)Returns the BodyProcessor to use based on the given mediaType. final Differdiffer(MediaType mediaType, MediaTypeConfig mediaTypeConfig)Returns the Differ to use based on the given mediaType. final Canonicalizercanonicalizer(MediaType mediaType)Returns the Canonicalizer to use based on the given mediaType. final MediaTypegetXmlMediaType()final MediaTypegetApplicationXmlMediaType()final MediaTypegetSoapMediaType()final MediaTypegetJsonMediaType()-
-
Method Detail
-
request
final String request(MediaType mediaType)
Returns the request name based on the given mediaType.
-
sourceResponse
final String sourceResponse(MediaType mediaType)
Returns the source response name based on the given mediaType.
-
expectedResponse
final String expectedResponse(MediaType mediaType)
Returns the expected response name based on the given mediaType.
-
actualResponse
final String actualResponse(MediaType mediaType)
Returns the actual response name based on the given mediaType.
-
processor
final BodyProcessor processor(MediaType mediaType)
Returns the BodyProcessor to use based on the given mediaType.
-
differ
final Differ differ(MediaType mediaType, MediaTypeConfig mediaTypeConfig)
-
canonicalizer
final Canonicalizer canonicalizer(MediaType mediaType)
Returns the Canonicalizer to use based on the given mediaType.
-
getXmlMediaType
final MediaType getXmlMediaType()
-
getApplicationXmlMediaType
final MediaType getApplicationXmlMediaType()
-
getSoapMediaType
final MediaType getSoapMediaType()
-
getJsonMediaType
final MediaType getJsonMediaType()
-
-
-
-