Class AbstractMessageSerializer<M>
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.driver.ser.AbstractMessageSerializer<M>
 
- 
- All Implemented Interfaces:
- MessageSerializer<M>
 - Direct Known Subclasses:
- AbstractGraphSONMessageSerializerV1d0,- AbstractGraphSONMessageSerializerV2d0,- GraphBinaryMessageSerializerV1
 
 public abstract class AbstractMessageSerializer<M> extends Object implements MessageSerializer<M> BaseMessageSerializerthat serializers can implement to get some helper methods around configuring aMapper.Builder.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringTOKEN_IO_REGISTRIES- 
Fields inherited from interface org.apache.tinkerpop.gremlin.driver.MessageSerializerlogger
 
- 
 - 
Constructor SummaryConstructors Constructor Description AbstractMessageSerializer()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddIoRegistries(Map<String,Object> config, Mapper.Builder builder)Reads a list of fully qualified class names from the value of theTOKEN_IO_REGISTRIESconfiguration key.protected List<String>getListStringFromConfig(String token, Map<String,Object> config)Gets aListof strings from the configuration object.protected MethodtryInstanceMethod(Class clazz)- 
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.driver.MessageSerializerconfigure, deserializeRequest, deserializeResponse, getMapper, mimeTypesSupported, serializeRequestAsBinary, serializeResponseAsBinary
 
- 
 
- 
- 
- 
Field Detail- 
TOKEN_IO_REGISTRIESpublic static final String TOKEN_IO_REGISTRIES - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
addIoRegistriesprotected void addIoRegistries(Map<String,Object> config, Mapper.Builder builder) 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.
 
- 
 
-