Marshalable<String>, MediaTypeAccessor, MediaTypeFactory, Unmarshalable<String>TextXmlFactorypublic class ApplicationXmlFactory extends ApplicationJsonFactory implements MediaTypeFactory
MediaTypeFactory for Media-Type "application/xml" (
MediaType.APPLICATION_XML).
CAUTION: This implementation uses getter/setter property resolution instead
of field resolution as of the used marshaling API.MediaTypeAccessor.MediaTypeBuilder<B extends MediaTypeAccessor.MediaTypeBuilder<B>>, MediaTypeAccessor.MediaTypeMutator, MediaTypeAccessor.MediaTypeProperty| Constructor | Description |
|---|---|
ApplicationXmlFactory() |
| Modifier and Type | Method | Description |
|---|---|---|
MediaType |
getMediaType() |
Retrieves the Media-Type from the Media-Type property.
|
String |
toMarshaled(Object aObject) |
This method creates / retrieves an instance of the given type with the
given identifier (name) constructed as defined in one to many
configuration files.
|
<T> T |
toUnmarshaled(String aHttpBody,
Class<T> aType) |
This method creates / retrieves an instance of the given type from the
provided instance.
|
toElementName, toPlainJson, toUnboxed, toVariableDeclarationtoMarshaledfromMarshaled, fromMarshaled, fromMarshaled, fromMarshaled, fromUnmarshaled, fromUnmarshaledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoUnmarshaled, toUnmarshaled, toUnmarshaledpublic MediaType getMediaType()
getMediaType in interface MediaTypeAccessorgetMediaType in class ApplicationJsonFactorypublic String toMarshaled(Object aObject) throws org.refcodes.exception.MarshalException
toMarshaled in interface Marshalable<String>toMarshaled in class ApplicationJsonFactoryaObject - The context which may influence the object being created
by this factory.org.refcodes.exception.MarshalException - Thrown when marshaling / serializing an object
fails.public <T> T toUnmarshaled(String aHttpBody, Class<T> aType) throws org.refcodes.exception.UnmarshalException
toUnmarshaled in interface Unmarshalable<String>toUnmarshaled in class ApplicationJsonFactoryT - The type which is to be fabricated by the factory method.aHttpBody - The context which may influence the object being created
by this factory.aType - The type identifying the instance to be created / retrieved.org.refcodes.exception.UnmarshalException - Thrown when unmarshaling / deserializing an
object fails.Copyright © 2018. All rights reserved.