public class FormUrlEncodedHandler extends Object implements ContentTypeHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTENT_TYPE |
| Constructor and Description |
|---|
FormUrlEncodedHandler() |
| Modifier and Type | Method and Description |
|---|---|
String |
fromObject(Object obj,
String resultCode,
Writer out)
Writes content to the stream
|
String |
getContentType()
Gets the content type for this handler
|
String |
getExtension()
Gets the extension this handler supports
|
void |
toObject(Reader in,
Object target)
No transformation is required as the framework handles this data
|
public static final String CONTENT_TYPE
public String fromObject(Object obj, String resultCode, Writer out) throws IOException
ContentTypeHandlerfromObject in interface ContentTypeHandlerobj - The object to write to the stream, usually the Action classresultCode - The original result codeout - The output stream, usually the responseIOException - If unable to write to the output streampublic void toObject(Reader in, Object target)
toObject in interface ContentTypeHandlerin - The input stream, usually the body of the requesttarget - The target, usually the action classpublic String getExtension()
ContentTypeHandlergetExtension in interface ContentTypeHandlerpublic String getContentType()
ContentTypeHandlergetContentType in interface ContentTypeHandlerCopyright © 2000–2017 Apache Software Foundation. All rights reserved.