public abstract class AbstractGraphSONMessageSerializerV2d0 extends AbstractMessageSerializer
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractGraphSONMessageSerializerV2d0.GremlinServerModule |
static class |
AbstractGraphSONMessageSerializerV2d0.JsonBuilderJacksonSerializer |
static class |
AbstractGraphSONMessageSerializerV2d0.RequestMessageDeserializer |
static class |
AbstractGraphSONMessageSerializerV2d0.RequestMessageSerializer |
static class |
AbstractGraphSONMessageSerializerV2d0.ResponseMessageDeserializer |
static class |
AbstractGraphSONMessageSerializerV2d0.ResponseMessageSerializer |
| Modifier and Type | Field and Description |
|---|---|
protected ObjectMapper |
mapper |
TOKEN_IO_REGISTRIES| Constructor and Description |
|---|
AbstractGraphSONMessageSerializerV2d0() |
AbstractGraphSONMessageSerializerV2d0(GraphSONMapper.Builder mapperBuilder) |
AbstractGraphSONMessageSerializerV2d0(GraphSONMapper mapper)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Map<String,Object> config,
Map<String,Graph> graphs)
Configure the serializer with mapper settings as required.
|
RequestMessage |
deserializeRequest(ByteBuf msg)
Deserialize a Netty
ByteBuf into a RequestMessage. |
ResponseMessage |
deserializeResponse(ByteBuf msg)
Deserialize a Netty
ByteBuf into a ResponseMessage. |
ByteBuf |
serializeRequestAsBinary(RequestMessage requestMessage,
ByteBufAllocator allocator)
Serialize a
ResponseMessage to a Netty ByteBuf. |
ByteBuf |
serializeResponseAsBinary(ResponseMessage responseMessage,
ByteBufAllocator allocator)
Serialize a
ResponseMessage to a Netty ByteBuf. |
addIoRegistries, getListStringFromConfig, tryInstanceMethodclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmimeTypesSupportedpublic AbstractGraphSONMessageSerializerV2d0()
@Deprecated public AbstractGraphSONMessageSerializerV2d0(GraphSONMapper mapper)
public AbstractGraphSONMessageSerializerV2d0(GraphSONMapper.Builder mapperBuilder)
public void configure(Map<String,Object> config, Map<String,Graph> graphs)
MessageSerializerpublic ByteBuf serializeResponseAsBinary(ResponseMessage responseMessage, ByteBufAllocator allocator) throws SerializationException
MessageSerializerResponseMessage to a Netty ByteBuf.responseMessage - The response message to serialize to bytes.allocator - The Netty allocator for the ByteBuf to return back.SerializationExceptionpublic ByteBuf serializeRequestAsBinary(RequestMessage requestMessage, ByteBufAllocator allocator) throws SerializationException
MessageSerializerResponseMessage to a Netty ByteBuf.requestMessage - The request message to serialize to bytes.allocator - The Netty allocator for the ByteBuf to return back.SerializationExceptionpublic RequestMessage deserializeRequest(ByteBuf msg) throws SerializationException
MessageSerializerByteBuf into a RequestMessage.SerializationExceptionpublic ResponseMessage deserializeResponse(ByteBuf msg) throws SerializationException
MessageSerializerByteBuf into a ResponseMessage.SerializationExceptionCopyright © 2013–2019 Apache Software Foundation. All rights reserved.