public class JacksonLibHandler extends Object implements ContentTypeHandler
| Constructor and Description |
|---|
JacksonLibHandler() |
| Modifier and Type | Method and Description |
|---|---|
String |
fromObject(Object obj,
String resultCode,
Writer stream)
Writes content to the stream
|
String |
getContentType()
Gets the content type for this handler
|
String |
getExtension()
Gets the extension this handler supports
|
void |
setDefaultEncoding(String val) |
void |
toObject(Reader in,
Object target)
Populates an object using data from the input stream
|
public void toObject(Reader in, Object target) throws IOException
ContentTypeHandlertoObject in interface ContentTypeHandlerin - The input stream, usually the body of the requesttarget - The target, usually the action classIOException - If unable to write to the output streampublic String fromObject(Object obj, String resultCode, Writer stream) throws IOException
ContentTypeHandlerfromObject in interface ContentTypeHandlerobj - The object to write to the stream, usually the Action classresultCode - The original result codestream - The output stream, usually the responseIOException - If unable to write to the output streampublic String getContentType()
ContentTypeHandlergetContentType in interface ContentTypeHandlerpublic String getExtension()
ContentTypeHandlergetExtension in interface ContentTypeHandlerpublic void setDefaultEncoding(String val)
Copyright © 2000–2016 Apache Software Foundation. All rights reserved.