Class AbstractMessageSerializer<M>
java.lang.Object
org.apache.tinkerpop.gremlin.util.ser.AbstractMessageSerializer<M>
- All Implemented Interfaces:
MessageSerializer<M>
- Direct Known Subclasses:
AbstractGraphSONMessageSerializerV4,GraphBinaryMessageSerializerV4,TextPlainMessageSerializer
Base
MessageSerializer that serializers can implement to get some helper methods around configuring a
Mapper.Builder.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.util.MessageSerializer
MessageSerializer.MessageParts -
Field Summary
FieldsFields inherited from interface org.apache.tinkerpop.gremlin.util.MessageSerializer
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddIoRegistries(Map<String, Object> config, Mapper.Builder builder) Reads a list of fully qualified class names from the value of theTOKEN_IO_REGISTRIESconfiguration key.getListStringFromConfig(String token, Map<String, Object> config) Gets aListof strings from the configuration object.protected MethodtryInstanceMethod(Class clazz) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.tinkerpop.gremlin.util.MessageSerializer
configure, deserializeBinaryRequest, deserializeBinaryResponse, getMapper, mimeTypesSupported, readChunk, serializeRequestAsBinary, serializeResponseAsBinary, writeChunk, writeErrorFooter, writeFooter, writeHeader
-
Field Details
-
TOKEN_IO_REGISTRIES
- See Also:
-
-
Constructor Details
-
AbstractMessageSerializer
public AbstractMessageSerializer()
-
-
Method Details
-
addIoRegistries
Reads a list of fully qualified class names from the value of theTOKEN_IO_REGISTRIESconfiguration key. These classes should equate toIoRegistryimplementations that will be assigned to theMapper.Builder. The assumption is that theIoRegistryeither has a staticinstance()method or has a zero-arg constructor from which it can be instantiated. -
tryInstanceMethod
-
getListStringFromConfig
Gets aListof strings from the configuration object.
-