public class JacksonJsonHandler extends AbstractContentTypeHandler
Constructor and Description |
---|
JacksonJsonHandler() |
Modifier and Type | Method and Description |
---|---|
String |
fromObject(ActionInvocation invocation,
Object obj,
String resultCode,
Writer stream) |
String |
getContentType()
Gets the content type for this handler
|
String |
getExtension()
Gets the extension this handler supports
|
void |
setDefaultEncoding(String val) |
void |
toObject(ActionInvocation invocation,
Reader in,
Object target) |
fromObject, toObject
public void toObject(ActionInvocation invocation, Reader in, Object target) throws IOException
IOException
public String fromObject(ActionInvocation invocation, Object obj, String resultCode, Writer stream) throws IOException
IOException
public String getContentType()
ContentTypeHandler
public String getExtension()
ContentTypeHandler
public void setDefaultEncoding(String val)
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.