public class JacksonJsonSupport extends Object implements JsonSupport
| Constructor and Description |
|---|
JacksonJsonSupport(Configuration configuration) |
JacksonJsonSupport(Configuration configuration,
com.fasterxml.jackson.databind.Module... modules) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEventMapping(String eventName,
Class<?>... eventClass) |
void |
addJsonClass(Class<?> clazz) |
protected void |
init(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
AckArgs |
readAckArgs(io.netty.buffer.ByteBufInputStream src,
AckCallback<?> callback) |
<T> T |
readValue(io.netty.buffer.ByteBufInputStream src,
Class<T> valueType) |
<T> T |
readValue(String src,
Class<T> valueType) |
void |
removeEventMapping(String eventName) |
void |
writeValue(io.netty.buffer.ByteBufOutputStream out,
Object value) |
String |
writeValueAsString(Object value) |
public JacksonJsonSupport(Configuration configuration)
public JacksonJsonSupport(Configuration configuration, com.fasterxml.jackson.databind.Module... modules)
protected void init(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public void addEventMapping(String eventName, Class<?>... eventClass)
addEventMapping in interface JsonSupportpublic void addJsonClass(Class<?> clazz)
addJsonClass in interface JsonSupportpublic void removeEventMapping(String eventName)
removeEventMapping in interface JsonSupportpublic <T> T readValue(io.netty.buffer.ByteBufInputStream src,
Class<T> valueType)
throws IOException
readValue in interface JsonSupportIOExceptionpublic AckArgs readAckArgs(io.netty.buffer.ByteBufInputStream src, AckCallback<?> callback) throws IOException
readAckArgs in interface JsonSupportIOExceptionpublic void writeValue(io.netty.buffer.ByteBufOutputStream out,
Object value)
throws IOException
writeValue in interface JsonSupportIOExceptionpublic String writeValueAsString(Object value) throws IOException
writeValueAsString in interface JsonSupportIOExceptionpublic <T> T readValue(String src, Class<T> valueType) throws IOException
readValue in interface JsonSupportIOExceptionCopyright © 2012–2014. All rights reserved.