org.springframework.integration.xmpp.inbound
Class RosterListeningEndpoint
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.endpoint.AbstractEndpoint
org.springframework.integration.xmpp.core.AbstractXmppConnectionAwareEndpoint
org.springframework.integration.xmpp.inbound.RosterListeningEndpoint
- All Implemented Interfaces:
- BeanFactoryAware, BeanNameAware, InitializingBean, Lifecycle, Phased, SmartLifecycle, NamedComponent
public class RosterListeningEndpoint
- extends AbstractXmppConnectionAwareEndpoint
Describes an inbound endpoint that is able to login and then emit Message
s when a
particular Presence event happens to the logged in user's Roster
.
(e.g., logged in/out, changed status etc.)
- Since:
- 2.0
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 |
setRequestChannel(MessageChannel requestChannel)
|
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 |
RosterListeningEndpoint
public RosterListeningEndpoint()
RosterListeningEndpoint
public RosterListeningEndpoint(org.jivesoftware.smack.XMPPConnection xmppConnection)
setRequestChannel
public void setRequestChannel(MessageChannel requestChannel)
- Parameters:
requestChannel
- the channel on which the inbound message should be sent
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
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