public abstract class AbstractGraphSONMessageSerializerV2d0 extends AbstractMessageSerializer<org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper>
Modifier and Type | Class and Description |
---|---|
static class |
AbstractGraphSONMessageSerializerV2d0.GremlinServerModule |
static class |
AbstractGraphSONMessageSerializerV2d0.JsonBuilderJacksonSerializer
Deprecated.
As of release 3.5.2, not replaced.
|
static class |
AbstractGraphSONMessageSerializerV2d0.RequestMessageDeserializer |
static class |
AbstractGraphSONMessageSerializerV2d0.RequestMessageSerializer |
static class |
AbstractGraphSONMessageSerializerV2d0.ResponseMessageDeserializer |
static class |
AbstractGraphSONMessageSerializerV2d0.ResponseMessageSerializer |
Modifier and Type | Field and Description |
---|---|
protected org.apache.tinkerpop.shaded.jackson.databind.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(io.netty.buffer.ByteBuf msg)
Deserialize a Netty
ByteBuf into a RequestMessage . |
ResponseMessage |
deserializeResponse(io.netty.buffer.ByteBuf msg)
Deserialize a Netty
ByteBuf into a ResponseMessage . |
org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper |
getMapper()
Gets the "mapper" that performs the underlying serialization work.
|
io.netty.buffer.ByteBuf |
serializeRequestAsBinary(RequestMessage requestMessage,
io.netty.buffer.ByteBufAllocator allocator)
Serialize a
ResponseMessage to a Netty ByteBuf . |
io.netty.buffer.ByteBuf |
serializeResponseAsBinary(ResponseMessage responseMessage,
io.netty.buffer.ByteBufAllocator allocator)
Serialize a
ResponseMessage to a Netty ByteBuf . |
addIoRegistries, getListStringFromConfig, tryInstanceMethod
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
mimeTypesSupported
public AbstractGraphSONMessageSerializerV2d0()
@Deprecated public AbstractGraphSONMessageSerializerV2d0(GraphSONMapper mapper)
public AbstractGraphSONMessageSerializerV2d0(GraphSONMapper.Builder mapperBuilder)
public void configure(Map<String,Object> config, Map<String,Graph> graphs)
MessageSerializer
public io.netty.buffer.ByteBuf serializeResponseAsBinary(ResponseMessage responseMessage, io.netty.buffer.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 io.netty.buffer.ByteBuf serializeRequestAsBinary(RequestMessage requestMessage, io.netty.buffer.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(io.netty.buffer.ByteBuf msg) throws SerializationException
MessageSerializer
ByteBuf
into a RequestMessage
.SerializationException
public ResponseMessage deserializeResponse(io.netty.buffer.ByteBuf msg) throws SerializationException
MessageSerializer
ByteBuf
into a ResponseMessage
.SerializationException
public org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper getMapper()
MessageSerializer
Copyright © 2013–2023 Apache Software Foundation. All rights reserved.