Class GraphSONMessageSerializerV4
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.util.ser.AbstractMessageSerializer<org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper>
-
- org.apache.tinkerpop.gremlin.util.ser.AbstractGraphSONMessageSerializerV4
-
- org.apache.tinkerpop.gremlin.util.ser.GraphSONMessageSerializerV4
-
- All Implemented Interfaces:
MessageSerializer<org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper>
public final class GraphSONMessageSerializerV4 extends AbstractGraphSONMessageSerializerV4
Serialize results to JSON with version 4.0.x schema and the extended module.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.tinkerpop.gremlin.util.ser.AbstractGraphSONMessageSerializerV4
AbstractGraphSONMessageSerializerV4.GremlinServerModuleV4, AbstractGraphSONMessageSerializerV4.RequestMessageDeserializer, AbstractGraphSONMessageSerializerV4.RequestMessageSerializer, AbstractGraphSONMessageSerializerV4.ResponseMessageDeserializer, AbstractGraphSONMessageSerializerV4.ResponseMessageFooterSerializer, AbstractGraphSONMessageSerializerV4.ResponseMessageHeaderSerializer, AbstractGraphSONMessageSerializerV4.ResponseMessageSerializer
-
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.util.MessageSerializer
MessageSerializer.MessageParts
-
-
Field Summary
-
Fields inherited from class org.apache.tinkerpop.gremlin.util.ser.AbstractGraphSONMessageSerializerV4
mapper
-
Fields inherited from class org.apache.tinkerpop.gremlin.util.ser.AbstractMessageSerializer
TOKEN_IO_REGISTRIES
-
-
Constructor Summary
Constructors Constructor Description GraphSONMessageSerializerV4()
Creates a default GraphSONMessageSerializer.GraphSONMessageSerializerV4(GraphSONMapper.Builder mapperBuilder)
Create a GraphSONMessageSerializer with a providedGraphSONMapper.Builder
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
mimeTypesSupported()
The list of mime types that the serializer supports.-
Methods inherited from class org.apache.tinkerpop.gremlin.util.ser.AbstractGraphSONMessageSerializerV4
configure, deserializeBinaryRequest, deserializeBinaryResponse, getMapper, isTyped, readChunk, serializeRequestAsBinary, serializeResponseAsBinary, writeChunk, writeErrorFooter, writeFooter, writeHeader
-
Methods inherited from class org.apache.tinkerpop.gremlin.util.ser.AbstractMessageSerializer
addIoRegistries, getListStringFromConfig, tryInstanceMethod
-
-
-
-
Constructor Detail
-
GraphSONMessageSerializerV4
public GraphSONMessageSerializerV4()
Creates a default GraphSONMessageSerializer.By default this will internally instantiate a
GraphSONMapper
and register aAbstractGraphSONMessageSerializerV4.GremlinServerModuleV4
andGraphSONXModuleV4
to the mapper.
-
GraphSONMessageSerializerV4
public GraphSONMessageSerializerV4(GraphSONMapper.Builder mapperBuilder)
Create a GraphSONMessageSerializer with a providedGraphSONMapper.Builder
. Note that to make this mapper usable in the context of request messages and responses, this method will automatically register aAbstractGraphSONMessageSerializerV4.GremlinServerModuleV4
to the provided mapper.
-
-
Method Detail
-
mimeTypesSupported
public String[] mimeTypesSupported()
Description copied from interface:MessageSerializer
The list of mime types that the serializer supports. They should be ordered in preferred ordered where the greatest fidelity match is first.
-
-