public class TextPlainFactory extends Object implements MediaTypeFactory
MediaTypeFactory
for Media-Type "text/plain" (
MediaType.TEXT_PLAIN
).MediaTypeAccessor.MediaTypeBuilder<B extends MediaTypeAccessor.MediaTypeBuilder<B>>, MediaTypeAccessor.MediaTypeMutator, MediaTypeAccessor.MediaTypeProperty
Constructor and Description |
---|
TextPlainFactory() |
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.