spring-framework / org.springframework.messaging.support / AbstractHeaderMapper

AbstractHeaderMapper

abstract class AbstractHeaderMapper<T : Any> : HeaderMapper<T>

A base HeaderMapper implementation

Author
Stephane Nicoll

Since
4.1

Constructors

<init>

AbstractHeaderMapper()

A base HeaderMapper implementation

Functions

setInboundPrefix

open fun setInboundPrefix(inboundPrefix: String): Unit

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

open fun setOutboundPrefix(outboundPrefix: String): Unit

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).