Class DefaultSoapHeaderMapper
java.lang.Object
org.springframework.integration.mapping.AbstractHeaderMapper<SoapMessage>
org.springframework.integration.ws.DefaultSoapHeaderMapper
- All Implemented Interfaces:
- Aware,- BeanClassLoaderAware,- RequestReplyHeaderMapper<SoapMessage>,- SoapHeaderMapper
public class DefaultSoapHeaderMapper
extends AbstractHeaderMapper<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, Stephane Nicoll, Mauro Molinari, Artem Bilan, Gary Russell
- 
Nested Class SummaryNested classes/interfaces inherited from class org.springframework.integration.mapping.AbstractHeaderMapperAbstractHeaderMapper.CompositeHeaderMatcher, AbstractHeaderMapper.ContentBasedHeaderMatcher, AbstractHeaderMapper.HeaderMatcher, AbstractHeaderMapper.PatternBasedHeaderMatcher, AbstractHeaderMapper.PrefixBasedMatcher, AbstractHeaderMapper.SinglePatternBasedHeaderMatcher
- 
Field SummaryFieldsFields inherited from class org.springframework.integration.mapping.AbstractHeaderMapperlogger, NON_STANDARD_HEADER_NAME_PATTERN, STANDARD_REPLY_HEADER_NAME_PATTERN, STANDARD_REQUEST_HEADER_NAME_PATTERN
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionextractStandardHeaders(SoapMessage source) Extract the standard headers from the specified source.extractUserDefinedHeaders(SoapMessage source) Extract the user-defined headers from the specified source.protected voidpopulateStandardHeaders(Map<String, Object> headers, SoapMessage target) Populate the specified standard headers to the specified source.protected voidpopulateUserDefinedHeader(String headerName, Object headerValue, SoapMessage target) Populate the specified user-defined headers to the specified source.Methods inherited from class org.springframework.integration.mapping.AbstractHeaderMappercreateDefaultHeaderMatcher, createHeaderMatcher, createTargetPropertyName, fromHeadersToReply, fromHeadersToRequest, getClassLoader, getHeaderIfAvailable, getTransientHeaderNames, populateStandardHeaders, setBeanClassLoader, setReplyHeaderNames, setRequestHeaderNames, toHeadersFromReply, toHeadersFromRequestMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.integration.mapping.RequestReplyHeaderMapperfromHeadersToReply, fromHeadersToRequest, toHeadersFromReply, toHeadersFromRequest
- 
Field Details- 
STANDARD_HEADER_NAMES
- 
transformerHelper
 
- 
- 
Constructor Details- 
DefaultSoapHeaderMapperpublic DefaultSoapHeaderMapper()
 
- 
- 
Method Details- 
extractStandardHeadersDescription copied from class:AbstractHeaderMapperExtract the standard headers from the specified source.- Specified by:
- extractStandardHeadersin class- AbstractHeaderMapper<SoapMessage>
- Parameters:
- source- the source object to extract standard headers.
- Returns:
- the map of headers to be mapped.
 
- 
extractUserDefinedHeadersDescription copied from class:AbstractHeaderMapperExtract the user-defined headers from the specified source.- Specified by:
- extractUserDefinedHeadersin class- AbstractHeaderMapper<SoapMessage>
- Parameters:
- source- the source object to extract user defined headers.
- Returns:
- the map of headers to be mapped.
 
- 
populateStandardHeadersDescription copied from class:AbstractHeaderMapperPopulate the specified standard headers to the specified source.- Specified by:
- populateStandardHeadersin class- AbstractHeaderMapper<SoapMessage>
- Parameters:
- headers- the map of standard headers to be populated.
- target- the target object to populate headers.
 
- 
populateUserDefinedHeaderDescription copied from class:AbstractHeaderMapperPopulate the specified user-defined headers to the specified source.- Specified by:
- populateUserDefinedHeaderin class- AbstractHeaderMapper<SoapMessage>
- Parameters:
- 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.
 
 
-