public abstract class AbstractMessageSerializer extends Object implements MessageSerializer
MessageSerializer
that serializers can implement to get some helper methods around configuring a
Mapper.Builder
.Modifier and Type | Field and Description |
---|---|
static String |
TOKEN_IO_REGISTRIES |
logger
Constructor and Description |
---|
AbstractMessageSerializer() |
Modifier and Type | Method and Description |
---|---|
protected void |
addIoRegistries(Map<String,Object> config,
Mapper.Builder builder)
Reads a list of fully qualified class names from the value of the
TOKEN_IO_REGISTRIES configuration
key. |
protected List<String> |
getListStringFromConfig(String token,
Map<String,Object> config)
Gets a
List of strings from the configuration object. |
protected Method |
tryInstanceMethod(Class clazz) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
configure, deserializeRequest, deserializeResponse, mimeTypesSupported, serializeRequestAsBinary, serializeResponseAsBinary
public static final String TOKEN_IO_REGISTRIES
protected void addIoRegistries(Map<String,Object> config, Mapper.Builder builder)
TOKEN_IO_REGISTRIES
configuration
key. These classes should equate to IoRegistry
implementations that will be assigned to the
Mapper.Builder
. The assumption is that the IoRegistry
either has a static instance()
method or has a zero-arg constructor from which it can be instantiated.Copyright © 2013–2020 Apache Software Foundation. All rights reserved.