Class ChatMessageListeningEndpoint

All Implemented Interfaces:
Aware, BeanFactoryAware, BeanNameAware, DisposableBean, InitializingBean, SmartInitializingSingleton, ApplicationContextAware, Lifecycle, Phased, SmartLifecycle, ExpressionCapable, MessageProducer, IntegrationPattern, NamedComponent, IntegrationInboundManagement, IntegrationManagement, ManageableLifecycle, ManageableSmartLifecycle, TrackableComponent

public class ChatMessageListeningEndpoint extends AbstractXmppConnectionAwareEndpoint
This component logs in as a user and forwards any messages to that user on to downstream components.
Since:
2.0
Author:
Josh Long, Mark Fisher, Oleg Zhurakousky, Artem Bilan, Gary Russell, Florian Schmaus
  • Constructor Details

    • ChatMessageListeningEndpoint

      public ChatMessageListeningEndpoint()
    • ChatMessageListeningEndpoint

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

    • setHeaderMapper

      public void setHeaderMapper(XmppHeaderMapper headerMapper)
    • setStanzaFilter

      public void setStanzaFilter(org.jivesoftware.smack.filter.StanzaFilter stanzaFilter)
      Specify a StanzaFilter to use for the incoming packets.
      Parameters:
      stanzaFilter - the StanzaFilter to use
      Since:
      4.3
      See Also:
      • XMPPConnection.addAsyncStanzaListener(StanzaListener, StanzaFilter)
    • setPayloadExpression

      public void setPayloadExpression(Expression payloadExpression)
      Specify a SpEL expression to evaluate a payload against an incoming Message.
      Parameters:
      payloadExpression - the Expression for payload evaluation.
      Since:
      4.3
      See Also:
      • StanzaListener
      • Message
    • 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 IntegrationObjectSupport
    • onInit

      protected void onInit()
      Description copied from class: IntegrationObjectSupport
      Subclasses may implement this for initialization logic.
      Overrides:
      onInit in class AbstractXmppConnectionAwareEndpoint
    • doStart

      protected void doStart()
      Description copied from class: MessageProducerSupport
      Take no action by default. Subclasses may override this if they need lifecycle-managed behavior. Protected by 'lifecycleLock'.
      Overrides:
      doStart in class MessageProducerSupport
    • doStop

      protected void doStop()
      Description copied from class: MessageProducerSupport
      Take no action by default. Subclasses may override this if they need lifecycle-managed behavior.
      Overrides:
      doStop in class MessageProducerSupport