public abstract class AbstractGraphSONMessageSerializerV1d0 extends Object implements MessageSerializer
| 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 | 
| protected static String | TOKEN_USE_MAPPER_FROM_GRAPH | 
| 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  ByteBufinto aRequestMessage. | 
| ResponseMessage | deserializeResponse(ByteBuf msg)Deserialize a Netty  ByteBufinto aResponseMessage. | 
| ByteBuf | serializeRequestAsBinary(RequestMessage requestMessage,
                        ByteBufAllocator allocator)Serialize a  ResponseMessageto a NettyByteBuf. | 
| ByteBuf | serializeResponseAsBinary(ResponseMessage responseMessage,
                         ByteBufAllocator allocator)Serialize a  ResponseMessageto a NettyByteBuf. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmimeTypesSupportedprotected ObjectMapper mapper
protected static final String TOKEN_USE_MAPPER_FROM_GRAPH
protected final <any> mapTypeReference
public AbstractGraphSONMessageSerializerV1d0()
public AbstractGraphSONMessageSerializerV1d0(GraphSONMapper mapper)
public void configure(Map<String,Object> config, Map<String,Graph> graphs)
MessageSerializerconfigure in interface MessageSerializerpublic ByteBuf serializeResponseAsBinary(ResponseMessage responseMessage, ByteBufAllocator allocator) throws SerializationException
MessageSerializerResponseMessage to a Netty ByteBuf.serializeResponseAsBinary in interface MessageSerializerresponseMessage - 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.serializeRequestAsBinary in interface MessageSerializerrequestMessage - 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.deserializeRequest in interface MessageSerializerSerializationExceptionpublic ResponseMessage deserializeResponse(ByteBuf msg) throws SerializationException
MessageSerializerByteBuf into a ResponseMessage.deserializeResponse in interface MessageSerializerSerializationExceptionCopyright © 2013–2015 Apache Software Foundation. All rights reserved.