org.springframework.integration.xmpp.inbound
Class ChatMessageListeningEndpoint
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.endpoint.AbstractEndpoint
org.springframework.integration.endpoint.MessageProducerSupport
org.springframework.integration.xmpp.core.AbstractXmppConnectionAwareEndpoint
org.springframework.integration.xmpp.inbound.ChatMessageListeningEndpoint
- All Implemented Interfaces:
- BeanFactoryAware, BeanNameAware, InitializingBean, Lifecycle, Phased, SmartLifecycle, NamedComponent, MessageProducer, 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
Method Summary |
protected void |
doStart()
Takes no action by default. |
protected void |
doStop()
Takes no action by default. |
java.lang.String |
getComponentType()
Subclasses may implement this method to provide component type information. |
void |
setExtractPayload(boolean extractPayload)
Specify whether the text message body should be extracted when mapping to a
Spring Integration Message payload. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ChatMessageListeningEndpoint
public ChatMessageListeningEndpoint()
ChatMessageListeningEndpoint
public ChatMessageListeningEndpoint(org.jivesoftware.smack.XMPPConnection xmppConnection)
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.
getComponentType
public java.lang.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
doStart
protected void doStart()
- Description copied from class:
MessageProducerSupport
- Takes no action by default. Subclasses may override this if they
need lifecycle-managed behavior.
- Overrides:
doStart
in class MessageProducerSupport
doStop
protected void doStop()
- Description copied from class:
MessageProducerSupport
- Takes no action by default. Subclasses may override this if they
need lifecycle-managed behavior.
- Overrides:
doStop
in class MessageProducerSupport