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.AbstractHeaderMapper.CompositeHeaderMatcher, AbstractHeaderMapper.ContentBasedHeaderMatcher, AbstractHeaderMapper.HeaderMatcher, AbstractHeaderMapper.PatternBasedHeaderMatcher, AbstractHeaderMapper.PrefixBasedMatcher, AbstractHeaderMapper.SinglePatternBasedHeaderMatcher
Modifier and Type | Field and Description |
---|---|
protected static List<String> |
STANDARD_HEADER_NAMES |
protected TransformerHelper |
transformerHelper |
logger, NON_STANDARD_HEADER_NAME_PATTERN, 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)
Extract the standard headers from the specified source.
|
protected Map<String,Object> |
extractUserDefinedHeaders(SoapMessage source)
Extract the user-defined headers from the specified source.
|
protected void |
populateStandardHeaders(Map<String,Object> headers,
SoapMessage target)
Populate the specified standard headers to the specified source.
|
protected void |
populateUserDefinedHeader(String headerName,
Object headerValue,
SoapMessage target)
Populate the specified user-defined headers to the specified source.
|
createDefaultHeaderMatcher, createHeaderMatcher, createTargetPropertyName, fromHeadersToReply, fromHeadersToRequest, getClassLoader, getHeaderIfAvailable, getTransientHeaderNames, populateStandardHeaders, setBeanClassLoader, setReplyHeaderNames, setRequestHeaderNames, toHeadersFromReply, toHeadersFromRequest
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fromHeadersToReply, fromHeadersToRequest, toHeadersFromReply, toHeadersFromRequest
protected final TransformerHelper transformerHelper
protected Map<String,Object> extractStandardHeaders(SoapMessage source)
AbstractHeaderMapper
extractStandardHeaders
in class AbstractHeaderMapper<SoapMessage>
source
- the source object to extract standard headers.protected Map<String,Object> extractUserDefinedHeaders(SoapMessage source)
AbstractHeaderMapper
extractUserDefinedHeaders
in class AbstractHeaderMapper<SoapMessage>
source
- the source object to extract user defined headers.protected void populateStandardHeaders(Map<String,Object> headers, SoapMessage target)
AbstractHeaderMapper
populateStandardHeaders
in class AbstractHeaderMapper<SoapMessage>
headers
- the map of standard headers to be populated.target
- the target object to populate headers.protected void populateUserDefinedHeader(String headerName, Object headerValue, SoapMessage target)
AbstractHeaderMapper
populateUserDefinedHeader
in class AbstractHeaderMapper<SoapMessage>
headerName
- the user defined header name to be populated.headerValue
- the user defined header value to be populated.target
- the target object to populate headers.