Spring Integration

org.springframework.integration.mapping
Interface HeaderMapper<T>

Type Parameters:
T - type of the instance to and from which headers will be mapped.
All Known Subinterfaces:
JmsHeaderMapper
All Known Implementing Classes:
DefaultHttpHeaderMapper, DefaultJmsHeaderMapper

public interface HeaderMapper<T>

Generic strategy interface for mapping MessageHeaders to and from other types of objects. This would typically be used by adapters where the "other type" has a concept of headers or properties (HTTP, JMS, AMQP, etc).

Author:
Mark Fisher

Method Summary
 void fromHeaders(MessageHeaders headers, T target)
           
 java.util.Map<java.lang.String,java.lang.Object> toHeaders(T source)
           
 

Method Detail

fromHeaders

void fromHeaders(MessageHeaders headers,
                 T target)

toHeaders

java.util.Map<java.lang.String,java.lang.Object> toHeaders(T source)

Spring Integration