Class DefaultXmppHeaderMapper

java.lang.Object
org.springframework.integration.mapping.AbstractHeaderMapper<org.jivesoftware.smack.packet.MessageBuilder>
org.springframework.integration.xmpp.support.DefaultXmppHeaderMapper
All Implemented Interfaces:
Aware, BeanClassLoaderAware, RequestReplyHeaderMapper<org.jivesoftware.smack.packet.MessageBuilder>, XmppHeaderMapper

public class DefaultXmppHeaderMapper extends AbstractHeaderMapper<org.jivesoftware.smack.packet.MessageBuilder> implements XmppHeaderMapper
Default implementation of XmppHeaderMapper.
Since:
2.1
Author:
Mark Fisher, Oleg Zhurakousky, Florian Schmaus, Stephane Nicoll, Artem Bilan
  • Constructor Details

    • DefaultXmppHeaderMapper

      public DefaultXmppHeaderMapper()
  • Method Details

    • extractStandardHeaders

      protected Map<String,Object> extractStandardHeaders(org.jivesoftware.smack.packet.MessageBuilder source)
      Description copied from class: AbstractHeaderMapper
      Extract the standard headers from the specified source.
      Specified by:
      extractStandardHeaders in class AbstractHeaderMapper<org.jivesoftware.smack.packet.MessageBuilder>
      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.MessageBuilder source)
      Description copied from class: AbstractHeaderMapper
      Extract the user-defined headers from the specified source.
      Specified by:
      extractUserDefinedHeaders in class AbstractHeaderMapper<org.jivesoftware.smack.packet.MessageBuilder>
      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.MessageBuilder target)
      Description copied from class: AbstractHeaderMapper
      Populate the specified standard headers to the specified source.
      Specified by:
      populateStandardHeaders in class AbstractHeaderMapper<org.jivesoftware.smack.packet.MessageBuilder>
      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.MessageBuilder target)
      Description copied from class: AbstractHeaderMapper
      Populate the specified user-defined headers to the specified source.
      Specified by:
      populateUserDefinedHeader in class AbstractHeaderMapper<org.jivesoftware.smack.packet.MessageBuilder>
      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.