org.springframework.integration.xmpp.inbound
Class ChatMessageListeningEndpoint

java.lang.Object
  extended by org.springframework.integration.context.IntegrationObjectSupport
      extended by org.springframework.integration.endpoint.AbstractEndpoint
          extended by org.springframework.integration.xmpp.core.AbstractXmppConnectionAwareEndpoint
              extended by org.springframework.integration.xmpp.inbound.ChatMessageListeningEndpoint
All Implemented Interfaces:
BeanFactoryAware, BeanNameAware, InitializingBean, Lifecycle, Phased, SmartLifecycle, NamedComponent

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

Field Summary
 
Fields inherited from class org.springframework.integration.xmpp.core.AbstractXmppConnectionAwareEndpoint
initialized, xmppConnection
 
Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport
logger
 
Constructor Summary
ChatMessageListeningEndpoint()
           
ChatMessageListeningEndpoint(org.jivesoftware.smack.XMPPConnection xmppConnection)
           
 
Method Summary
protected  void doStart()
          Subclasses must implement this method with the start behavior.
protected  void doStop()
          Subclasses must implement this method with the stop behavior.
protected  void onInit()
          Subclasses may implement this for initialization logic.
 void setExtractPayload(boolean extractPayload)
          Specify whether the text message body should be extracted when mapping to a Spring Integration Message payload.
 void setRequestChannel(MessageChannel requestChannel)
           
 
Methods inherited from class org.springframework.integration.endpoint.AbstractEndpoint
getPhase, isAutoStartup, isRunning, setAutoStartup, setPhase, setTaskScheduler, start, stop, stop
 
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport
afterPropertiesSet, getBeanFactory, getComponentName, getComponentType, getConversionService, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChatMessageListeningEndpoint

public ChatMessageListeningEndpoint()

ChatMessageListeningEndpoint

public ChatMessageListeningEndpoint(org.jivesoftware.smack.XMPPConnection xmppConnection)
Method Detail

setRequestChannel

public void setRequestChannel(MessageChannel requestChannel)
Parameters:
requestChannel - the channel on which the inbound message should be sent

setExtractPayload

public void setExtractPayload(boolean extractPayload)
Specify whether the text message body should be extracted when mapping to a Spring Integration Message payload. Otherwise, the full XMPP Message will be passed within the payload. This value is true by default.


onInit

protected void onInit()
               throws java.lang.Exception
Description copied from class: IntegrationObjectSupport
Subclasses may implement this for initialization logic.

Overrides:
onInit in class AbstractXmppConnectionAwareEndpoint
Throws:
java.lang.Exception

doStart

protected void doStart()
Description copied from class: AbstractEndpoint
Subclasses must implement this method with the start behavior. This method will be invoked while holding the AbstractEndpoint.lifecycleLock.

Specified by:
doStart in class AbstractEndpoint

doStop

protected void doStop()
Description copied from class: AbstractEndpoint
Subclasses must implement this method with the stop behavior. This method will be invoked while holding the AbstractEndpoint.lifecycleLock.

Specified by:
doStop in class AbstractEndpoint