Class AbstractGraphSONMessageSerializerV2
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.util.ser.AbstractMessageSerializer<org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper>
- 
- org.apache.tinkerpop.gremlin.util.ser.AbstractGraphSONMessageSerializerV2
 
 
- 
- All Implemented Interfaces:
- MessageSerializer<org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper>
 - Direct Known Subclasses:
- GraphSONMessageSerializerV2,- GraphSONMessageSerializerV3,- GraphSONUntypedMessageSerializerV2,- GraphSONUntypedMessageSerializerV3
 
 public abstract class AbstractGraphSONMessageSerializerV2 extends AbstractMessageSerializer<org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper> - Author:
- Stephen Mallette (http://stephen.genoprime.com)
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classAbstractGraphSONMessageSerializerV2.GremlinServerModulestatic classAbstractGraphSONMessageSerializerV2.RequestMessageDeserializerstatic classAbstractGraphSONMessageSerializerV2.RequestMessageSerializerstatic classAbstractGraphSONMessageSerializerV2.ResponseMessageDeserializerstatic classAbstractGraphSONMessageSerializerV2.ResponseMessageSerializer
 - 
Field SummaryFields Modifier and Type Field Description protected org.apache.tinkerpop.shaded.jackson.databind.ObjectMappermapper- 
Fields inherited from class org.apache.tinkerpop.gremlin.util.ser.AbstractMessageSerializerTOKEN_IO_REGISTRIES
 
- 
 - 
Constructor SummaryConstructors Constructor Description AbstractGraphSONMessageSerializerV2()AbstractGraphSONMessageSerializerV2(GraphSONMapper mapper)Deprecated.AbstractGraphSONMessageSerializerV2(GraphSONMapper.Builder mapperBuilder)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(Map<String,Object> config, Map<String,Graph> graphs)Configure the serializer with mapper settings as required.RequestMessagedeserializeRequest(io.netty.buffer.ByteBuf msg)Deserialize a NettyByteBufinto aRequestMessage.ResponseMessagedeserializeResponse(io.netty.buffer.ByteBuf msg)Deserialize a NettyByteBufinto aResponseMessage.org.apache.tinkerpop.shaded.jackson.databind.ObjectMappergetMapper()Gets the "mapper" that performs the underlying serialization work.io.netty.buffer.ByteBufserializeRequestAsBinary(RequestMessage requestMessage, io.netty.buffer.ByteBufAllocator allocator)Serialize aResponseMessageto a NettyByteBuf.io.netty.buffer.ByteBufserializeResponseAsBinary(ResponseMessage responseMessage, io.netty.buffer.ByteBufAllocator allocator)Serialize aResponseMessageto a NettyByteBuf.- 
Methods inherited from class org.apache.tinkerpop.gremlin.util.ser.AbstractMessageSerializeraddIoRegistries, getListStringFromConfig, tryInstanceMethod
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.util.MessageSerializermimeTypesSupported
 
- 
 
- 
- 
- 
Constructor Detail- 
AbstractGraphSONMessageSerializerV2public AbstractGraphSONMessageSerializerV2() 
 - 
AbstractGraphSONMessageSerializerV2@Deprecated public AbstractGraphSONMessageSerializerV2(GraphSONMapper mapper) Deprecated.
 - 
AbstractGraphSONMessageSerializerV2public AbstractGraphSONMessageSerializerV2(GraphSONMapper.Builder mapperBuilder) 
 
- 
 - 
Method Detail- 
configurepublic void configure(Map<String,Object> config, Map<String,Graph> graphs) Description copied from interface:MessageSerializerConfigure the serializer with mapper settings as required. The default implementation does not perform any function and it is up to the interface implementation to determine how the configuration will be executed and what its requirements are. An implementation may choose to use the list of available graphs to help initialize a serializer. The implementation should account for the possibility of a null value being provided for that parameter.
 - 
serializeResponseAsBinarypublic io.netty.buffer.ByteBuf serializeResponseAsBinary(ResponseMessage responseMessage, io.netty.buffer.ByteBufAllocator allocator) throws SerializationException Description copied from interface:MessageSerializerSerialize aResponseMessageto a NettyByteBuf.- Parameters:
- responseMessage- The response message to serialize to bytes.
- allocator- The Netty allocator for the- ByteBufto return back.
- Throws:
- SerializationException
 
 - 
serializeRequestAsBinarypublic io.netty.buffer.ByteBuf serializeRequestAsBinary(RequestMessage requestMessage, io.netty.buffer.ByteBufAllocator allocator) throws SerializationException Description copied from interface:MessageSerializerSerialize aResponseMessageto a NettyByteBuf.- Parameters:
- requestMessage- The request message to serialize to bytes.
- allocator- The Netty allocator for the- ByteBufto return back.
- Throws:
- SerializationException
 
 - 
deserializeRequestpublic RequestMessage deserializeRequest(io.netty.buffer.ByteBuf msg) throws SerializationException Description copied from interface:MessageSerializerDeserialize a NettyByteBufinto aRequestMessage.- Throws:
- SerializationException
 
 - 
deserializeResponsepublic ResponseMessage deserializeResponse(io.netty.buffer.ByteBuf msg) throws SerializationException Description copied from interface:MessageSerializerDeserialize a NettyByteBufinto aResponseMessage.- Throws:
- SerializationException
 
 - 
getMapperpublic org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper getMapper() Description copied from interface:MessageSerializerGets the "mapper" that performs the underlying serialization work.
 
- 
 
-