public class FormUrlEncodedHandler extends AbstractContentTypeHandler
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_TYPE |
Constructor and Description |
---|
FormUrlEncodedHandler() |
Modifier and Type | Method and Description |
---|---|
String |
fromObject(ActionInvocation invocation,
Object obj,
String resultCode,
Writer out) |
String |
getContentType()
Gets the content type for this handler
|
String |
getExtension()
Gets the extension this handler supports
|
void |
toObject(ActionInvocation invocation,
Reader in,
Object target)
No transformation is required as the framework handles this data
|
fromObject, toObject
public static final String CONTENT_TYPE
public String fromObject(ActionInvocation invocation, Object obj, String resultCode, Writer out) throws IOException
IOException
public void toObject(ActionInvocation invocation, Reader in, Object target)
in
- The input stream, usually the body of the requesttarget
- The target, usually the action classpublic String getExtension()
ContentTypeHandler
public String getContentType()
ContentTypeHandler
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.