public abstract class AbstractHeaderMapper<T> extends Object implements HeaderMapper<T>
HeaderMapper
implementation.Constructor and Description |
---|
AbstractHeaderMapper() |
Modifier and Type | Method and Description |
---|---|
protected String |
fromHeaderName(String headerName)
Generate the name to use to set the header defined by the specified
headerName to the protocol specific message. |
protected <V> V |
getHeaderIfAvailable(Map<String,Object> headers,
String name,
Class<V> type)
Return the header value, or
null if it does not exist
or does not match the requested type . |
void |
setInboundPrefix(String inboundPrefix)
Specify a prefix to be appended to the message header name for any
user-defined property that is being mapped into the MessageHeaders.
|
void |
setOutboundPrefix(String outboundPrefix)
Specify a prefix to be appended to the protocol property name for any
user-defined message header that is being mapped into the protocol-specific
Message.
|
protected String |
toHeaderName(String propertyName)
Generate the name to use to set the header defined by the specified
propertyName to the MessageHeaders instance. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fromHeaders, toHeaders
protected final Log logger
public void setInboundPrefix(@Nullable String inboundPrefix)
public void setOutboundPrefix(@Nullable String outboundPrefix)
protected String fromHeaderName(String headerName)
headerName
to the protocol specific message.setOutboundPrefix(java.lang.String)
protected String toHeaderName(String propertyName)
propertyName
to the MessageHeaders
instance.setInboundPrefix(String)