public class ApplicationJsonFactory extends Object implements MediaTypeFactory
MediaTypeFactory
for Media-Type "application/json" (
MediaType.APPLICATION_JSON
).
CAUTION: This implementation uses field resolution instead of getter/setter
property resolution as of the used marshaling API.MediaTypeAccessor.MediaTypeBuilder<B extends MediaTypeAccessor.MediaTypeBuilder<B>>, MediaTypeAccessor.MediaTypeMutator, MediaTypeAccessor.MediaTypeProperty
Constructor and Description |
---|
ApplicationJsonFactory() |
Modifier and Type | Method and Description |
---|---|
MediaType |
getMediaType()
Retrieves the Media-Type from the Media-Type property.
|
String |
toMarshaled(Object aObject) |
<T> T |
toUnmarshaled(String aHttpBody,
Class<T> aType) |
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) throws org.refcodes.exception.MarshalException
toMarshaled
in interface org.refcodes.factory.MarshalFactory<String>
org.refcodes.exception.MarshalException
Copyright © 2017. All rights reserved.