public abstract class AbstractGraphSONMessageSerializerV1d0 extends AbstractMessageSerializer
Modifier and Type | Class and Description |
---|---|
static class |
AbstractGraphSONMessageSerializerV1d0.GremlinServerModule |
static class |
AbstractGraphSONMessageSerializerV1d0.JsonBuilderJacksonSerializer |
static class |
AbstractGraphSONMessageSerializerV1d0.ResponseMessageSerializer |
Modifier and Type | Field and Description |
---|---|
protected ObjectMapper |
mapper |
protected <any> |
mapTypeReference |
TOKEN_IO_REGISTRIES
Constructor and Description |
---|
AbstractGraphSONMessageSerializerV1d0() |
AbstractGraphSONMessageSerializerV1d0(GraphSONMapper mapper) |
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, tryInstanceMethod
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
mimeTypesSupported
protected ObjectMapper mapper
protected final <any> mapTypeReference
public AbstractGraphSONMessageSerializerV1d0()
public AbstractGraphSONMessageSerializerV1d0(GraphSONMapper mapper)
public void configure(Map<String,Object> config, Map<String,Graph> graphs)
MessageSerializer
public ByteBuf serializeResponseAsBinary(ResponseMessage responseMessage, ByteBufAllocator allocator) throws SerializationException
MessageSerializer
ResponseMessage
to a Netty ByteBuf
.responseMessage
- The response message to serialize to bytes.allocator
- The Netty allocator for the ByteBuf
to return back.SerializationException
public ByteBuf serializeRequestAsBinary(RequestMessage requestMessage, ByteBufAllocator allocator) throws SerializationException
MessageSerializer
ResponseMessage
to a Netty ByteBuf
.requestMessage
- The request message to serialize to bytes.allocator
- The Netty allocator for the ByteBuf
to return back.SerializationException
public RequestMessage deserializeRequest(ByteBuf msg) throws SerializationException
MessageSerializer
ByteBuf
into a RequestMessage
.SerializationException
public ResponseMessage deserializeResponse(ByteBuf msg) throws SerializationException
MessageSerializer
ByteBuf
into a ResponseMessage
.SerializationException
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.