Spring Integration

org.springframework.integration.xmpp.support
Class DefaultXmppHeaderMapper

java.lang.Object
  extended by org.springframework.integration.mapping.AbstractHeaderMapper<org.jivesoftware.smack.packet.Message>
      extended by org.springframework.integration.xmpp.support.DefaultXmppHeaderMapper
All Implemented Interfaces:
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

Field Summary
 
Fields inherited from class org.springframework.integration.mapping.AbstractHeaderMapper
logger, STANDARD_REPLY_HEADER_NAME_PATTERN, STANDARD_REQUEST_HEADER_NAME_PATTERN
 
Constructor Summary
DefaultXmppHeaderMapper()
           
 
Method Summary
protected  java.util.Map<java.lang.String,java.lang.Object> extractStandardHeaders(org.jivesoftware.smack.packet.Message source)
           
protected  java.util.Map<java.lang.String,java.lang.Object> extractUserDefinedHeaders(org.jivesoftware.smack.packet.Message source)
           
protected  java.lang.String getStandardHeaderPrefix()
          Returns the list of standard REPLY headers.
protected  java.util.List<java.lang.String> getStandardReplyHeaderNames()
          Returns the list of standard REQUEST 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.jivesoftware.smack.packet.Message target)
           
protected  void populateUserDefinedHeader(java.lang.String headerName, java.lang.Object headerValue, org.jivesoftware.smack.packet.Message target)
           
 
Methods inherited from class org.springframework.integration.mapping.AbstractHeaderMapper
fromHeadersToReply, fromHeadersToRequest, getHeaderIfAvailable, setReplyHeaderNames, setRequestHeaderNames, setUserDefinedHeaderPrefix, toHeadersFromReply, toHeadersFromRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.integration.mapping.RequestReplyHeaderMapper
fromHeadersToReply, fromHeadersToRequest, toHeadersFromReply, toHeadersFromRequest
 

Constructor Detail

DefaultXmppHeaderMapper

public DefaultXmppHeaderMapper()
Method Detail

extractStandardHeaders

protected java.util.Map<java.lang.String,java.lang.Object> extractStandardHeaders(org.jivesoftware.smack.packet.Message source)
Specified by:
extractStandardHeaders in class AbstractHeaderMapper<org.jivesoftware.smack.packet.Message>

extractUserDefinedHeaders

protected java.util.Map<java.lang.String,java.lang.Object> extractUserDefinedHeaders(org.jivesoftware.smack.packet.Message source)
Specified by:
extractUserDefinedHeaders in class AbstractHeaderMapper<org.jivesoftware.smack.packet.Message>

populateStandardHeaders

protected void populateStandardHeaders(java.util.Map<java.lang.String,java.lang.Object> headers,
                                       org.jivesoftware.smack.packet.Message target)
Specified by:
populateStandardHeaders in class AbstractHeaderMapper<org.jivesoftware.smack.packet.Message>

populateUserDefinedHeader

protected void populateUserDefinedHeader(java.lang.String headerName,
                                         java.lang.Object headerValue,
                                         org.jivesoftware.smack.packet.Message target)
Specified by:
populateUserDefinedHeader in class AbstractHeaderMapper<org.jivesoftware.smack.packet.Message>

getStandardReplyHeaderNames

protected java.util.List<java.lang.String> getStandardReplyHeaderNames()
Description copied from class: AbstractHeaderMapper
Returns the list of standard REQUEST headers. Implementation provided by a subclass

Overrides:
getStandardReplyHeaderNames in class AbstractHeaderMapper<org.jivesoftware.smack.packet.Message>

getStandardRequestHeaderNames

protected java.util.List<java.lang.String> getStandardRequestHeaderNames()
Description copied from class: AbstractHeaderMapper
Returns the PREFIX used by standard headers (if any)

Overrides:
getStandardRequestHeaderNames in class AbstractHeaderMapper<org.jivesoftware.smack.packet.Message>

getStandardHeaderPrefix

protected java.lang.String getStandardHeaderPrefix()
Description copied from class: AbstractHeaderMapper
Returns the list of standard REPLY headers. Implementation provided by a subclass

Specified by:
getStandardHeaderPrefix in class AbstractHeaderMapper<org.jivesoftware.smack.packet.Message>

Spring Integration