public class ApplicationFormFactory extends Object implements MediaTypeFactory
MediaTypeFactory
for Media-Type
"application/x-www-form-urlencoded" (
MediaType.APPLICATION_X_WWW_FORM_URLENCODED
).
CAUTION: This implementation can only marshal objects of (sub-)type
Map>
.MediaTypeAccessor.MediaTypeBuilder<B extends MediaTypeAccessor.MediaTypeBuilder<B>>, MediaTypeAccessor.MediaTypeMutator, MediaTypeAccessor.MediaTypeProperty
Constructor and Description |
---|
ApplicationFormFactory() |
Modifier and Type | Method and Description |
---|---|
MediaType |
getMediaType()
Retrieves the Media-Type from the Media-Type property.
|
String |
toMarshaled(Object aObject)
This method expects an instance of (sub-)type
Map as argument. |
<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
Map
as argument.
toMarshaled
in interface org.refcodes.factory.MarshalFactory<String>
org.refcodes.exception.MarshalException
Copyright © 2017. All rights reserved.