public class JacksonJsonSupport extends Object implements JsonSupport
| Modifier and Type | Class and Description |
|---|---|
static class |
JacksonJsonSupport.ByteArraySerializer |
static class |
JacksonJsonSupport.EventKey |
| Constructor and Description |
|---|
JacksonJsonSupport() |
JacksonJsonSupport(com.fasterxml.jackson.databind.Module... modules) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEventMapping(String namespaceName,
String eventName,
Class<?>... eventClass) |
List<byte[]> |
getArrays() |
protected void |
init(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
AckArgs |
readAckArgs(io.netty.buffer.ByteBufInputStream src,
AckCallback<?> callback) |
<T> T |
readValue(String namespaceName,
io.netty.buffer.ByteBufInputStream src,
Class<T> valueType) |
void |
removeEventMapping(String namespaceName,
String eventName) |
void |
writeValue(io.netty.buffer.ByteBufOutputStream out,
Object value) |
public JacksonJsonSupport()
public JacksonJsonSupport(com.fasterxml.jackson.databind.Module... modules)
protected void init(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public void addEventMapping(String namespaceName, String eventName, Class<?>... eventClass)
addEventMapping in interface JsonSupportpublic void removeEventMapping(String namespaceName, String eventName)
removeEventMapping in interface JsonSupportpublic <T> T readValue(String namespaceName, 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 List<byte[]> getArrays()
getArrays in interface JsonSupportCopyright © 2012–2015. All rights reserved.