public abstract class AbstractGraphSONMessageSerializerV1d0 extends AbstractMessageSerializer<org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper>
| Modifier and Type | Class and Description | 
|---|---|
| static class  | AbstractGraphSONMessageSerializerV1d0.GremlinServerModule | 
| static class  | AbstractGraphSONMessageSerializerV1d0.ResponseMessageSerializer | 
| Modifier and Type | Field and Description | 
|---|---|
| protected org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper | mapper | 
| protected org.apache.tinkerpop.shaded.jackson.core.type.TypeReference<Map<String,Object>> | 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(io.netty.buffer.ByteBuf msg)Deserialize a Netty  ByteBufinto aRequestMessage. | 
| ResponseMessage | deserializeResponse(io.netty.buffer.ByteBuf msg)Deserialize a Netty  ByteBufinto aResponseMessage. | 
| 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  ResponseMessageto a NettyByteBuf. | 
| io.netty.buffer.ByteBuf | serializeResponseAsBinary(ResponseMessage responseMessage,
                         io.netty.buffer.ByteBufAllocator allocator)Serialize a  ResponseMessageto a NettyByteBuf. | 
addIoRegistries, getListStringFromConfig, tryInstanceMethodclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmimeTypesSupportedpublic AbstractGraphSONMessageSerializerV1d0()
public AbstractGraphSONMessageSerializerV1d0(GraphSONMapper mapper)
public void configure(Map<String,Object> config, Map<String,Graph> graphs)
MessageSerializerpublic io.netty.buffer.ByteBuf serializeResponseAsBinary(ResponseMessage responseMessage, io.netty.buffer.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 io.netty.buffer.ByteBuf serializeRequestAsBinary(RequestMessage requestMessage, io.netty.buffer.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(io.netty.buffer.ByteBuf msg) throws SerializationException
MessageSerializerByteBuf into a RequestMessage.SerializationExceptionpublic ResponseMessage deserializeResponse(io.netty.buffer.ByteBuf msg) throws SerializationException
MessageSerializerByteBuf into a ResponseMessage.SerializationExceptionpublic org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper getMapper()
MessageSerializerCopyright © 2013–2022 Apache Software Foundation. All rights reserved.