public final class GraphSONMessageSerializerV2d0 extends AbstractGraphSONMessageSerializerV2d0 implements MessageTextSerializer<org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper>
AbstractGraphSONMessageSerializerV2d0.GremlinServerModule, AbstractGraphSONMessageSerializerV2d0.RequestMessageDeserializer, AbstractGraphSONMessageSerializerV2d0.RequestMessageSerializer, AbstractGraphSONMessageSerializerV2d0.ResponseMessageDeserializer, AbstractGraphSONMessageSerializerV2d0.ResponseMessageSerializermapperTOKEN_IO_REGISTRIES| Constructor and Description |
|---|
GraphSONMessageSerializerV2d0()
Creates a default GraphSONMessageSerializer.
|
GraphSONMessageSerializerV2d0(GraphSONMapper.Builder mapperBuilder)
Create a GraphSONMessageSerializer with a provided
GraphSONMapper.Builder. |
GraphSONMessageSerializerV2d0(GraphSONMapper mapper)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
RequestMessage |
deserializeRequest(String msg) |
ResponseMessage |
deserializeResponse(String msg) |
String[] |
mimeTypesSupported()
The list of mime types that the serializer supports.
|
String |
serializeRequestAsString(RequestMessage requestMessage) |
String |
serializeResponseAsString(ResponseMessage responseMessage) |
configure, deserializeRequest, deserializeResponse, getMapper, serializeRequestAsBinary, serializeResponseAsBinaryaddIoRegistries, getListStringFromConfig, tryInstanceMethodclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconfigure, deserializeRequest, deserializeResponse, getMapper, serializeRequestAsBinary, serializeResponseAsBinarypublic GraphSONMessageSerializerV2d0()
GraphSONMapper and register
a GremlinServerModule and GraphSONXModuleV2d0 to the mapper.@Deprecated public GraphSONMessageSerializerV2d0(GraphSONMapper mapper)
GraphSONMapper. Deprecated, use
GraphSONMessageSerializerV2d0(GraphSONMapper.Builder) instead.public GraphSONMessageSerializerV2d0(GraphSONMapper.Builder mapperBuilder)
GraphSONMapper.Builder.
Note that to make this mapper usable in the context of request messages and responses,
this method will automatically register a GremlinServerModule to the provided
mapper.public String[] mimeTypesSupported()
MessageSerializermimeTypesSupported in interface MessageSerializer<org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper>public ResponseMessage deserializeResponse(String msg) throws SerializationException
deserializeResponse in interface MessageTextSerializer<org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper>SerializationExceptionpublic String serializeResponseAsString(ResponseMessage responseMessage) throws SerializationException
serializeResponseAsString in interface MessageTextSerializer<org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper>SerializationExceptionpublic RequestMessage deserializeRequest(String msg) throws SerializationException
deserializeRequest in interface MessageTextSerializer<org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper>SerializationExceptionpublic String serializeRequestAsString(RequestMessage requestMessage) throws SerializationException
serializeRequestAsString in interface MessageTextSerializer<org.apache.tinkerpop.shaded.jackson.databind.ObjectMapper>SerializationExceptionCopyright © 2013–2022 Apache Software Foundation. All rights reserved.