public interface MediaTypeFactory extends org.refcodes.factory.UnmarshalFactory<String>, org.refcodes.factory.MarshalFactory<String>, MediaTypeAccessor
MediaTypeFactory
creates instances from an HTTP body and creates
an HTTP body from given instances according to the MediaType
(as of
MediaTypeAccessor.getMediaType()
) for which the MediaTypeFactory
is
responsible.MediaTypeAccessor.MediaTypeBuilder<B extends MediaTypeAccessor.MediaTypeBuilder<B>>, MediaTypeAccessor.MediaTypeMutator, MediaTypeAccessor.MediaTypeProperty
Modifier and Type | Method and 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,
org.refcodes.collection.Properties aProperties)
|
default Object |
fromMarshaled(InputStream aContentInputStream,
org.refcodes.collection.Properties aProperties,
Class<?>... aTypes)
|
default <SRC> InputStream |
fromUnmarshaled(SRC aContext)
|
default <SRC> InputStream |
fromUnmarshaled(SRC aContext,
org.refcodes.collection.Properties aProperties)
Same as
MarshalFactory.toMarshaled(Object, Properties) returning an
InputStream instead of a String . |
toUnmarshaled, toUnmarshaled, toUnmarshaled, toUnmarshaled
getMediaType
default <T> T fromMarshaled(InputStream aContentInputStream, Class<T> aType) throws org.refcodes.exception.UnmarshalException
org.refcodes.exception.UnmarshalException
#toUnmarshaled(String, Class)
default Object fromMarshaled(InputStream aContentInputStream, Class<?>... aTypes) throws org.refcodes.exception.UnmarshalException
org.refcodes.exception.UnmarshalException
#toUnmarshaled(String, Class...)
default Object fromMarshaled(InputStream aContentInputStream, org.refcodes.collection.Properties aProperties, Class<?>... aTypes) throws org.refcodes.exception.UnmarshalException
org.refcodes.exception.UnmarshalException
#toUnmarshaled(String, Properties, Class...)
default <T> T fromMarshaled(InputStream aContentInputStream, Class<T> aType, org.refcodes.collection.Properties aProperties) throws org.refcodes.exception.UnmarshalException
org.refcodes.exception.UnmarshalException
#toUnmarshaled(String, Class, Properties)
default <SRC> InputStream fromUnmarshaled(SRC aContext) throws org.refcodes.exception.MarshalException
org.refcodes.exception.MarshalException
MarshalFactory.toMarshaled(Object)
default <SRC> InputStream fromUnmarshaled(SRC aContext, org.refcodes.collection.Properties aProperties) throws org.refcodes.exception.MarshalException
MarshalFactory.toMarshaled(Object, Properties)
returning an
InputStream
instead of a String
.org.refcodes.exception.MarshalException
MarshalFactory.toMarshaled(Object, Properties)
Copyright © 2017. All rights reserved.