Class ChatMessageSendingMessageHandler

All Implemented Interfaces:
org.reactivestreams.Subscriber<Message<?>>, Aware, BeanFactoryAware, BeanNameAware, DisposableBean, InitializingBean, ApplicationContextAware, Ordered, ExpressionCapable, Orderable, IntegrationPattern, NamedComponent, IntegrationManagement, TrackableComponent, MessageHandler, reactor.core.CoreSubscriber<Message<?>>

public class ChatMessageSendingMessageHandler extends AbstractXmppConnectionAwareMessageHandler
MessageHandler that sends an XMPP Chat Message. Supported payload types are Smack Message Message or String.
Since:
2.0
Author:
Josh Long, Mario Gray, Oleg Zhurakousky, Artem Bilan, Florian Schmaus
  • Constructor Details

    • ChatMessageSendingMessageHandler

      public ChatMessageSendingMessageHandler()
    • ChatMessageSendingMessageHandler

      public ChatMessageSendingMessageHandler(org.jivesoftware.smack.XMPPConnection xmppConnection)
  • Method Details

    • setHeaderMapper

      public void setHeaderMapper(XmppHeaderMapper headerMapper)
    • setExtensionProvider

      public void setExtensionProvider(org.jivesoftware.smack.provider.ExtensionElementProvider<? extends org.jivesoftware.smack.packet.ExtensionElement> extensionProvider)
      Specify an ExtensionElementProvider to build an ExtensionElement for the Stanza.addExtension(ExtensionElement) instead of body.
      Parameters:
      extensionProvider - the ExtensionElementProvider to use.
      Since:
      4.3
    • getComponentType

      public String getComponentType()
      Description copied from class: IntegrationObjectSupport
      Subclasses may implement this method to provide component type information.
      Specified by:
      getComponentType in interface NamedComponent
      Overrides:
      getComponentType in class MessageHandlerSupport
    • handleMessageInternal

      protected void handleMessageInternal(Message<?> message)
      Specified by:
      handleMessageInternal in class AbstractMessageHandler