public final class JacksonCodec extends Object implements DataCodec, HeadersCodec
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTENT_TYPE |
INSTANCES| Constructor and Description |
|---|
JacksonCodec() |
JacksonCodec(com.fasterxml.jackson.databind.ObjectMapper mapper) |
| Modifier and Type | Method and Description |
|---|---|
String |
contentType() |
Map<String,String> |
decode(InputStream stream) |
Object |
decode(InputStream stream,
Class<?> type) |
void |
encode(OutputStream stream,
Map<String,String> headers) |
void |
encode(OutputStream stream,
Object value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAllInstances, getInstancegetInstance, loadInstancepublic static final String CONTENT_TYPE
public JacksonCodec()
public JacksonCodec(com.fasterxml.jackson.databind.ObjectMapper mapper)
public String contentType()
contentType in interface DataCodeccontentType in interface HeadersCodecpublic void encode(OutputStream stream, Map<String,String> headers) throws IOException
encode in interface HeadersCodecIOExceptionpublic Map<String,String> decode(InputStream stream) throws IOException
decode in interface HeadersCodecIOExceptionpublic void encode(OutputStream stream, Object value) throws IOException
encode in interface DataCodecIOExceptionpublic Object decode(InputStream stream, Class<?> type) throws IOException
decode in interface DataCodecIOExceptionCopyright © 2015–2018. All rights reserved.