AbstractHeaderMapper

A base {@link HeaderMapper} implementation.

@author Stephane Nicoll @since 4.1 @param (T) type of the instance to and from which headers will be mapped

Members

Functions

fromHeaderName
string fromHeaderName(string headerName)

Generate the name to use to set the header defined by the specified {@code headerName} to the protocol specific message. @see #setOutboundPrefix

getHeaderIfAvailable
V getHeaderIfAvailable(Map!(string, Object) headers, string name)

Return the header value, or {@code null} if it does not exist or does not match the requested {@code type}.

setInboundPrefix
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. The default is an empty string (no prefix).

setOutboundPrefix
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. The default is an empty string (no prefix).

toHeaderName
string toHeaderName(string propertyName)

Generate the name to use to set the header defined by the specified {@code propertyName} to the {@link MessageHeaders} instance. @see #setInboundPrefix(string)

Meta