public class ApplicationXmlFactory extends Object 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 and Description |
---|
ApplicationXmlFactory() |
Modifier and Type | Method and Description |
---|---|
MediaType |
getMediaType()
Retrieves the Media-Type from the Media-Type property.
|
String |
toMarshaled(Object aObject) |
String |
toMarshaled(Object aObject,
org.refcodes.collection.Properties aProperties) |
<T> T |
toUnmarshaled(String aHttpBody,
Class<T> aType) |
<T> T |
toUnmarshaled(String aHttpBody,
Class<T> aType,
org.refcodes.collection.Properties aProperties) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fromMarshaled, fromMarshaled, fromMarshaled, fromMarshaled, fromUnmarshaled, fromUnmarshaled
public MediaType getMediaType()
MediaTypeAccessor
getMediaType
in interface MediaTypeAccessor
public String toMarshaled(Object aObject, org.refcodes.collection.Properties aProperties) throws org.refcodes.exception.MarshalException
toMarshaled
in interface org.refcodes.factory.MarshalFactory<String>
org.refcodes.exception.MarshalException
public String toMarshaled(Object aObject) throws org.refcodes.exception.MarshalException
toMarshaled
in interface org.refcodes.factory.MarshalFactory<String>
org.refcodes.exception.MarshalException
public <T> T toUnmarshaled(String aHttpBody, Class<T> aType) throws org.refcodes.exception.UnmarshalException
toUnmarshaled
in interface org.refcodes.factory.UnmarshalFactory<String>
org.refcodes.exception.UnmarshalException
public <T> T toUnmarshaled(String aHttpBody, Class<T> aType, org.refcodes.collection.Properties aProperties) throws org.refcodes.exception.UnmarshalException
toUnmarshaled
in interface org.refcodes.factory.UnmarshalFactory<String>
org.refcodes.exception.UnmarshalException
Copyright © 2017. All rights reserved.