org.refcodes.factory.MarshalFactory<String>
, org.refcodes.factory.MarshalFactory.MarshalFactoryComplement<String>
, org.refcodes.factory.MarshalFactory.MarshalFactoryComposite<String,InputStream>
, MediaTypesAccessor
, org.refcodes.factory.UnmarshalFactory<String>
, org.refcodes.factory.UnmarshalFactory.UnmarshalFactoryComplement<String>
, org.refcodes.factory.UnmarshalFactory.UnmarshalFactoryComposite<String,InputStream>
FormMediaTypeFactory
, HtmlMediaTypeFactory
, JsonMediaTypeFactory
, TextMediaTypeFactory
, XmlMediaTypeFactory
, YamlMediaTypeFactory
public interface MediaTypeFactory extends org.refcodes.factory.UnmarshalFactory.UnmarshalFactoryComposite<String,InputStream>, org.refcodes.factory.MarshalFactory.MarshalFactoryComposite<String,InputStream>, MediaTypesAccessor
MediaTypeFactory
creates instances from an HTTP body and creates
an HTTP body from given instances according to the MediaType
(as of
MediaTypesAccessor.getMediaTypes()
) for which the MediaTypeFactory
is
responsible.org.refcodes.factory.MarshalFactory.MarshalFactoryComplement<C extends Object>, org.refcodes.factory.MarshalFactory.MarshalFactoryComposite<T extends Object,C extends Object>
MediaTypesAccessor.MediaTypesBuilder<B extends MediaTypesAccessor.MediaTypesBuilder<B>>, MediaTypesAccessor.MediaTypesMutator, MediaTypesAccessor.MediaTypesProperty
Modifier and Type | Field | Description |
---|---|---|
static String |
ARRAY_SELECTOR |
|
static String |
COLLECTION_SELECTOR |
|
static String |
TYPE_ANNOTATION |
|
static String |
VALUE_SELECTOR |
Modifier and Type | Method | Description |
---|---|---|
default Object |
fromMarshaled(InputStream aContentInputStream,
Class<?>... aTypes) |
|
default <T> T |
fromMarshaled(InputStream aContentInputStream,
Class<T> aType) |
|
default <T> T |
fromMarshaled(InputStream aContentInputStream,
Class<T> aType,
Map<String,String> aProperties) |
|
default Object |
fromMarshaled(InputStream aContentInputStream,
Map<String,String> aProperties,
Class<?>... aTypes) |
|
default <SRC> InputStream |
fromUnmarshaled(SRC aContext) |
|
default <SRC> InputStream |
fromUnmarshaled(SRC aContext,
Map<String,String> aProperties) |
getMediaTypes
static final String VALUE_SELECTOR
static final String ARRAY_SELECTOR
static final String COLLECTION_SELECTOR
static final String TYPE_ANNOTATION
default <T> T fromMarshaled(InputStream aContentInputStream, Class<T> aType) throws org.refcodes.exception.UnmarshalException
fromMarshaled
in interface org.refcodes.factory.UnmarshalFactory.UnmarshalFactoryComplement<String>
org.refcodes.exception.UnmarshalException
default Object fromMarshaled(InputStream aContentInputStream, Class<?>... aTypes) throws org.refcodes.exception.UnmarshalException
fromMarshaled
in interface org.refcodes.factory.UnmarshalFactory.UnmarshalFactoryComplement<String>
org.refcodes.exception.UnmarshalException
default Object fromMarshaled(InputStream aContentInputStream, Map<String,String> aProperties, Class<?>... aTypes) throws org.refcodes.exception.UnmarshalException
fromMarshaled
in interface org.refcodes.factory.UnmarshalFactory.UnmarshalFactoryComplement<String>
org.refcodes.exception.UnmarshalException
default <T> T fromMarshaled(InputStream aContentInputStream, Class<T> aType, Map<String,String> aProperties) throws org.refcodes.exception.UnmarshalException
fromMarshaled
in interface org.refcodes.factory.UnmarshalFactory.UnmarshalFactoryComplement<String>
org.refcodes.exception.UnmarshalException
default <SRC> InputStream fromUnmarshaled(SRC aContext) throws org.refcodes.exception.MarshalException
fromUnmarshaled
in interface org.refcodes.factory.MarshalFactory.MarshalFactoryComplement<String>
org.refcodes.exception.MarshalException
default <SRC> InputStream fromUnmarshaled(SRC aContext, Map<String,String> aProperties) throws org.refcodes.exception.MarshalException
fromUnmarshaled
in interface org.refcodes.factory.MarshalFactory.MarshalFactoryComplement<String>
org.refcodes.exception.MarshalException
Copyright © 2021. All rights reserved.