public abstract class AbstractHeaderMapper<T> extends java.lang.Object implements HeaderMapper<T>
HeaderMapper
implementation.Constructor and Description |
---|
AbstractHeaderMapper() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
fromHeaderName(java.lang.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(java.util.Map<java.lang.String,java.lang.Object> headers,
java.lang.String name,
java.lang.Class<V> type)
Return the header value, or
null if it does not exist
or does not match the requested type . |
void |
setInboundPrefix(java.lang.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(java.lang.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 java.lang.String |
toHeaderName(java.lang.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(java.lang.String inboundPrefix)
public void setOutboundPrefix(java.lang.String outboundPrefix)
protected java.lang.String fromHeaderName(java.lang.String headerName)
headerName
to the protocol specific message.setOutboundPrefix(java.lang.String)
protected java.lang.String toHeaderName(java.lang.String propertyName)
propertyName
to the MessageHeaders
instance.setInboundPrefix(String)
protected <V> V getHeaderIfAvailable(java.util.Map<java.lang.String,java.lang.Object> headers, java.lang.String name, java.lang.Class<V> type)
null
if it does not exist
or does not match the requested type
.