Class DefaultXmppHeaderMapper
java.lang.Object
org.springframework.integration.mapping.AbstractHeaderMapper<org.jivesoftware.smack.packet.Message>
org.springframework.integration.xmpp.support.DefaultXmppHeaderMapper
- All Implemented Interfaces:
Aware,BeanClassLoaderAware,RequestReplyHeaderMapper<org.jivesoftware.smack.packet.Message>,XmppHeaderMapper
public class DefaultXmppHeaderMapper extends AbstractHeaderMapper<org.jivesoftware.smack.packet.Message> implements XmppHeaderMapper
Default implementation of
XmppHeaderMapper.- Since:
- 2.1
- Author:
- Mark Fisher, Oleg Zhurakousky, Florian Schmaus, Stephane Nicoll, Artem Bilan
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.integration.mapping.AbstractHeaderMapper
AbstractHeaderMapper.CompositeHeaderMatcher, AbstractHeaderMapper.ContentBasedHeaderMatcher, AbstractHeaderMapper.HeaderMatcher, AbstractHeaderMapper.PatternBasedHeaderMatcher, AbstractHeaderMapper.PrefixBasedMatcher, AbstractHeaderMapper.SinglePatternBasedHeaderMatcher -
Field Summary
Fields inherited from class org.springframework.integration.mapping.AbstractHeaderMapper
logger, NON_STANDARD_HEADER_NAME_PATTERN, STANDARD_REPLY_HEADER_NAME_PATTERN, STANDARD_REQUEST_HEADER_NAME_PATTERN -
Constructor Summary
Constructors Constructor Description DefaultXmppHeaderMapper() -
Method Summary
Modifier and Type Method Description protected Map<String,Object>extractStandardHeaders(org.jivesoftware.smack.packet.Message source)Extract the standard headers from the specified source.protected Map<String,Object>extractUserDefinedHeaders(org.jivesoftware.smack.packet.Message source)Extract the user-defined headers from the specified source.protected voidpopulateStandardHeaders(Map<String,Object> headers, org.jivesoftware.smack.packet.Message target)Populate the specified standard headers to the specified source.protected voidpopulateUserDefinedHeader(String headerName, Object headerValue, org.jivesoftware.smack.packet.Message target)Populate the specified user-defined headers to the specified source.Methods inherited from class org.springframework.integration.mapping.AbstractHeaderMapper
createDefaultHeaderMatcher, createHeaderMatcher, createTargetPropertyName, fromHeadersToReply, fromHeadersToRequest, getClassLoader, getHeaderIfAvailable, getTransientHeaderNames, populateStandardHeaders, setBeanClassLoader, setReplyHeaderNames, setRequestHeaderNames, toHeadersFromReply, toHeadersFromRequestMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.integration.mapping.RequestReplyHeaderMapper
fromHeadersToReply, fromHeadersToRequest, toHeadersFromReply, toHeadersFromRequest
-
Constructor Details
-
DefaultXmppHeaderMapper
public DefaultXmppHeaderMapper()
-
-
Method Details
-
extractStandardHeaders
Description copied from class:AbstractHeaderMapperExtract the standard headers from the specified source.- Specified by:
extractStandardHeadersin classAbstractHeaderMapper<org.jivesoftware.smack.packet.Message>- Parameters:
source- the source object to extract standard headers.- Returns:
- the map of headers to be mapped.
-
extractUserDefinedHeaders
protected Map<String,Object> extractUserDefinedHeaders(org.jivesoftware.smack.packet.Message source)Description copied from class:AbstractHeaderMapperExtract the user-defined headers from the specified source.- Specified by:
extractUserDefinedHeadersin classAbstractHeaderMapper<org.jivesoftware.smack.packet.Message>- Parameters:
source- the source object to extract user defined headers.- Returns:
- the map of headers to be mapped.
-
populateStandardHeaders
protected void populateStandardHeaders(Map<String,Object> headers, org.jivesoftware.smack.packet.Message target)Description copied from class:AbstractHeaderMapperPopulate the specified standard headers to the specified source.- Specified by:
populateStandardHeadersin classAbstractHeaderMapper<org.jivesoftware.smack.packet.Message>- Parameters:
headers- the map of standard headers to be populated.target- the target object to populate headers.
-
populateUserDefinedHeader
protected void populateUserDefinedHeader(String headerName, Object headerValue, org.jivesoftware.smack.packet.Message target)Description copied from class:AbstractHeaderMapperPopulate the specified user-defined headers to the specified source.- Specified by:
populateUserDefinedHeaderin classAbstractHeaderMapper<org.jivesoftware.smack.packet.Message>- 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.
-