public class DefaultSoapHeaderMapper extends AbstractHeaderMapper<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 Map<String,Object> |
extractStandardHeaders(SoapMessage source) |
protected Map<String,Object> |
extractUserDefinedHeaders(SoapMessage source) |
protected String |
getStandardHeaderPrefix() |
protected List<String> |
getStandardRequestHeaderNames() |
protected void |
populateStandardHeaders(Map<String,Object> headers,
SoapMessage target) |
protected void |
populateUserDefinedHeader(String headerName,
Object headerValue,
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 Map<String,Object> extractStandardHeaders(SoapMessage source)
extractStandardHeaders
in class AbstractHeaderMapper<SoapMessage>
protected Map<String,Object> extractUserDefinedHeaders(SoapMessage source)
extractUserDefinedHeaders
in class AbstractHeaderMapper<SoapMessage>
protected void populateStandardHeaders(Map<String,Object> headers, SoapMessage target)
populateStandardHeaders
in class AbstractHeaderMapper<SoapMessage>
protected void populateUserDefinedHeader(String headerName, Object headerValue, SoapMessage target)
populateUserDefinedHeader
in class AbstractHeaderMapper<SoapMessage>
protected List<String> getStandardRequestHeaderNames()
getStandardRequestHeaderNames
in class AbstractHeaderMapper<SoapMessage>
protected String getStandardHeaderPrefix()
getStandardHeaderPrefix
in class AbstractHeaderMapper<SoapMessage>