public class DefaultSoapHeaderMapper extends AbstractHeaderMapper<org.springframework.ws.soap.SoapMessage> implements SoapHeaderMapper
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.logger, STANDARD_REPLY_HEADER_NAME_PATTERN, STANDARD_REQUEST_HEADER_NAME_PATTERN
Constructor and Description |
---|
DefaultSoapHeaderMapper() |
Modifier and Type | Method and Description |
---|---|
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) |
fromHeadersToReply, fromHeadersToRequest, getHeaderIfAvailable, getStandardReplyHeaderNames, setReplyHeaderNames, setRequestHeaderNames, setUserDefinedHeaderPrefix, toHeadersFromReply, toHeadersFromRequest
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fromHeadersToReply, fromHeadersToRequest, toHeadersFromReply, toHeadersFromRequest
protected java.util.Map<java.lang.String,java.lang.Object> extractStandardHeaders(org.springframework.ws.soap.SoapMessage source)
extractStandardHeaders
in class AbstractHeaderMapper<org.springframework.ws.soap.SoapMessage>
protected java.util.Map<java.lang.String,java.lang.Object> extractUserDefinedHeaders(org.springframework.ws.soap.SoapMessage source)
extractUserDefinedHeaders
in class AbstractHeaderMapper<org.springframework.ws.soap.SoapMessage>
protected void populateStandardHeaders(java.util.Map<java.lang.String,java.lang.Object> headers, org.springframework.ws.soap.SoapMessage target)
populateStandardHeaders
in class AbstractHeaderMapper<org.springframework.ws.soap.SoapMessage>
protected void populateUserDefinedHeader(java.lang.String headerName, java.lang.Object headerValue, org.springframework.ws.soap.SoapMessage target)
populateUserDefinedHeader
in class AbstractHeaderMapper<org.springframework.ws.soap.SoapMessage>
protected java.util.List<java.lang.String> getStandardRequestHeaderNames()
AbstractHeaderMapper
getStandardRequestHeaderNames
in class AbstractHeaderMapper<org.springframework.ws.soap.SoapMessage>
protected java.lang.String getStandardHeaderPrefix()
AbstractHeaderMapper
getStandardHeaderPrefix
in class AbstractHeaderMapper<org.springframework.ws.soap.SoapMessage>