Class GraphSONMessageSerializerV1
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.util.ser.AbstractMessageSerializer<org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper>
- 
- org.apache.tinkerpop.gremlin.util.ser.AbstractGraphSONMessageSerializerV1
- 
- org.apache.tinkerpop.gremlin.util.ser.GraphSONMessageSerializerV1
 
 
 
- 
- All Implemented Interfaces:
- MessageSerializer<org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper>,- MessageTextSerializer<org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper>
 
 public final class GraphSONMessageSerializerV1 extends AbstractGraphSONMessageSerializerV1 implements MessageTextSerializer<org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper> Serialize results to JSON with version 1.0.x schema.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.apache.tinkerpop.gremlin.util.ser.AbstractGraphSONMessageSerializerV1AbstractGraphSONMessageSerializerV1.GremlinServerModule, AbstractGraphSONMessageSerializerV1.ResponseMessageSerializer
 
- 
 - 
Field Summary- 
Fields inherited from class org.apache.tinkerpop.gremlin.util.ser.AbstractGraphSONMessageSerializerV1mapper, mapTypeReference
 - 
Fields inherited from class org.apache.tinkerpop.gremlin.util.ser.AbstractMessageSerializerTOKEN_IO_REGISTRIES
 
- 
 - 
Constructor SummaryConstructors Constructor Description GraphSONMessageSerializerV1()GraphSONMessageSerializerV1(GraphSONMapper mapper)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestMessagedeserializeRequest(String msg)ResponseMessagedeserializeResponse(String msg)String[]mimeTypesSupported()The list of mime types that the serializer supports.StringserializeRequestAsString(RequestMessage requestMessage, io.netty.buffer.ByteBufAllocator allocator)StringserializeResponseAsString(ResponseMessage responseMessage, io.netty.buffer.ByteBufAllocator allocator)- 
Methods inherited from class org.apache.tinkerpop.gremlin.util.ser.AbstractGraphSONMessageSerializerV1configure, deserializeRequest, deserializeResponse, getMapper, serializeRequestAsBinary, serializeResponseAsBinary
 - 
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.MessageSerializerconfigure, deserializeRequest, deserializeResponse, getMapper, serializeRequestAsBinary, serializeResponseAsBinary
 
- 
 
- 
- 
- 
Constructor Detail- 
GraphSONMessageSerializerV1public GraphSONMessageSerializerV1() 
 - 
GraphSONMessageSerializerV1public GraphSONMessageSerializerV1(GraphSONMapper mapper) 
 
- 
 - 
Method Detail- 
mimeTypesSupportedpublic String[] mimeTypesSupported() Description copied from interface:MessageSerializerThe list of mime types that the serializer supports. They should be ordered in preferred ordered where the greatest fidelity match is first.- Specified by:
- mimeTypesSupportedin interface- MessageSerializer<org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper>
 
 - 
deserializeResponsepublic ResponseMessage deserializeResponse(String msg) throws SerializationException - Specified by:
- deserializeResponsein interface- MessageTextSerializer<org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper>
- Throws:
- SerializationException
 
 - 
serializeResponseAsStringpublic String serializeResponseAsString(ResponseMessage responseMessage, io.netty.buffer.ByteBufAllocator allocator) throws SerializationException - Specified by:
- serializeResponseAsStringin interface- MessageTextSerializer<org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper>
- Throws:
- SerializationException
 
 - 
deserializeRequestpublic RequestMessage deserializeRequest(String msg) throws SerializationException - Specified by:
- deserializeRequestin interface- MessageTextSerializer<org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper>
- Throws:
- SerializationException
 
 - 
serializeRequestAsStringpublic String serializeRequestAsString(RequestMessage requestMessage, io.netty.buffer.ByteBufAllocator allocator) throws SerializationException - Specified by:
- serializeRequestAsStringin interface- MessageTextSerializer<org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper>
- Throws:
- SerializationException
 
 
- 
 
-