Interface MessageTextSerializer<M>
-
- All Superinterfaces:
MessageSerializer<M>
- All Known Implementing Classes:
GraphSONMessageSerializerV1d0
,GraphSONMessageSerializerV2d0
,GraphSONMessageSerializerV3d0
public interface MessageTextSerializer<M> extends MessageSerializer<M>
An extension to the MessageSerializer interface that allows a format to be compatible with text-based websocket messages. This interface is for internal purposes only. Implementers who have mapper serialization needs should NOT implement this interface as it will not be used. Gremlin Server only supports plain JSON for text-based requests.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
-
-
Field Summary
-
Fields inherited from interface org.apache.tinkerpop.gremlin.driver.MessageSerializer
logger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RequestMessage
deserializeRequest(String msg)
ResponseMessage
deserializeResponse(String msg)
String
serializeRequestAsString(RequestMessage requestMessage)
String
serializeResponseAsString(ResponseMessage responseMessage)
-
Methods inherited from interface org.apache.tinkerpop.gremlin.driver.MessageSerializer
configure, deserializeRequest, deserializeResponse, getMapper, mimeTypesSupported, serializeRequestAsBinary, serializeResponseAsBinary
-
-
-
-
Method Detail
-
serializeResponseAsString
String serializeResponseAsString(ResponseMessage responseMessage) throws SerializationException
- Throws:
SerializationException
-
serializeRequestAsString
String serializeRequestAsString(RequestMessage requestMessage) throws SerializationException
- Throws:
SerializationException
-
deserializeRequest
RequestMessage deserializeRequest(String msg) throws SerializationException
- Throws:
SerializationException
-
deserializeResponse
ResponseMessage deserializeResponse(String msg) throws SerializationException
- Throws:
SerializationException
-
-