org.springframework.integration.ws
Class DefaultSoapHeaderMapper

java.lang.Object
  extended by org.springframework.integration.ws.DefaultSoapHeaderMapper
All Implemented Interfaces:
HeaderMapper<org.springframework.ws.soap.SoapHeader>

public class DefaultSoapHeaderMapper
extends java.lang.Object
implements HeaderMapper<org.springframework.ws.soap.SoapHeader>

A HeaderMapper implementation for mapping to and from a SoapHeader. The inboundHeaderNames and outboundHeaderNames may be configured. They accept exact name Strings or simple patterns (e.g. "start*", "*end", or "*"). By default all inbound headers will be accepted, but any outbound header that should be mapped must be configured explicitly. Note that the outbound mapping only writes String header values into attributes on the SoapHeader. For anything more advanced, one should implement the HeaderMapper interface directly.

Since:
2.0

Constructor Summary
DefaultSoapHeaderMapper()
           
 
Method Summary
 void fromHeaders(MessageHeaders headers, org.springframework.ws.soap.SoapHeader target)
           
 void setInboundHeaderNames(java.lang.String[] inboundHeaderNames)
           
 void setOutboundHeaderNames(java.lang.String[] outboundHeaderNames)
           
 java.util.Map<java.lang.String,java.lang.Object> toHeaders(org.springframework.ws.soap.SoapHeader source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSoapHeaderMapper

public DefaultSoapHeaderMapper()
Method Detail

setOutboundHeaderNames

public void setOutboundHeaderNames(java.lang.String[] outboundHeaderNames)

setInboundHeaderNames

public void setInboundHeaderNames(java.lang.String[] inboundHeaderNames)

fromHeaders

public void fromHeaders(MessageHeaders headers,
                        org.springframework.ws.soap.SoapHeader target)
Specified by:
fromHeaders in interface HeaderMapper<org.springframework.ws.soap.SoapHeader>

toHeaders

public java.util.Map<java.lang.String,java.lang.Object> toHeaders(org.springframework.ws.soap.SoapHeader source)
Specified by:
toHeaders in interface HeaderMapper<org.springframework.ws.soap.SoapHeader>