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, toObjectpublic void toObject(ActionInvocation invocation, Reader in, Object target) throws IOException
IOExceptionpublic String fromObject(ActionInvocation invocation, Object obj, String resultCode, Writer stream) throws IOException
IOExceptionpublic String getContentType()
ContentTypeHandlerpublic String getExtension()
ContentTypeHandlerpublic void setDefaultEncoding(String val)
Copyright © 2000–2025 Apache Software Foundation. All rights reserved.