org.springframework.integration.ws
Class DefaultSoapHeaderMapper
java.lang.Object
org.springframework.integration.mapping.AbstractHeaderMapper<org.springframework.ws.soap.SoapMessage>
org.springframework.integration.ws.DefaultSoapHeaderMapper
- All Implemented Interfaces:
- RequestReplyHeaderMapper<org.springframework.ws.soap.SoapMessage>, SoapHeaderMapper
public class DefaultSoapHeaderMapper
- extends AbstractHeaderMapper<org.springframework.ws.soap.SoapMessage>
- implements SoapHeaderMapper
A HeaderMapper
implementation for mapping to and from a SoapHeader.
The AbstractHeaderMapper.setRequestHeaderNames(String[])
and AbstractHeaderMapper.setReplyHeaderNames(String[])
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
- Author:
- Mark Fisher, Oleg Zhurakousky
Method Summary |
protected java.util.Map<java.lang.String,java.lang.Object> |
extractStandardHeaders(org.springframework.ws.soap.SoapMessage source)
|
protected java.util.Map<java.lang.String,java.lang.Object> |
extractUserDefinedHeaders(org.springframework.ws.soap.SoapMessage source)
|
protected java.lang.String |
getStandardHeaderPrefix()
Returns the list of standard REPLY headers. |
protected java.util.List<java.lang.String> |
getStandardRequestHeaderNames()
Returns the PREFIX used by standard headers (if any) |
protected void |
populateStandardHeaders(java.util.Map<java.lang.String,java.lang.Object> headers,
org.springframework.ws.soap.SoapMessage target)
|
protected void |
populateUserDefinedHeader(java.lang.String headerName,
java.lang.Object headerValue,
org.springframework.ws.soap.SoapMessage target)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSoapHeaderMapper
public DefaultSoapHeaderMapper()
extractStandardHeaders
protected java.util.Map<java.lang.String,java.lang.Object> extractStandardHeaders(org.springframework.ws.soap.SoapMessage source)
- Specified by:
extractStandardHeaders
in class AbstractHeaderMapper<org.springframework.ws.soap.SoapMessage>
extractUserDefinedHeaders
protected java.util.Map<java.lang.String,java.lang.Object> extractUserDefinedHeaders(org.springframework.ws.soap.SoapMessage source)
- Specified by:
extractUserDefinedHeaders
in class AbstractHeaderMapper<org.springframework.ws.soap.SoapMessage>
populateStandardHeaders
protected void populateStandardHeaders(java.util.Map<java.lang.String,java.lang.Object> headers,
org.springframework.ws.soap.SoapMessage target)
- Specified by:
populateStandardHeaders
in class AbstractHeaderMapper<org.springframework.ws.soap.SoapMessage>
populateUserDefinedHeader
protected void populateUserDefinedHeader(java.lang.String headerName,
java.lang.Object headerValue,
org.springframework.ws.soap.SoapMessage target)
- Specified by:
populateUserDefinedHeader
in class AbstractHeaderMapper<org.springframework.ws.soap.SoapMessage>
getStandardRequestHeaderNames
protected java.util.List<java.lang.String> getStandardRequestHeaderNames()
- Description copied from class:
AbstractHeaderMapper
- Returns the PREFIX used by standard headers (if any)
- Overrides:
getStandardRequestHeaderNames
in class AbstractHeaderMapper<org.springframework.ws.soap.SoapMessage>
getStandardHeaderPrefix
protected java.lang.String getStandardHeaderPrefix()
- Description copied from class:
AbstractHeaderMapper
- Returns the list of standard REPLY headers. Implementation provided by a subclass
- Specified by:
getStandardHeaderPrefix
in class AbstractHeaderMapper<org.springframework.ws.soap.SoapMessage>