|
Spring Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.integration.context.IntegrationObjectSupport org.springframework.integration.endpoint.AbstractEndpoint org.springframework.integration.xmpp.presence.XmppRosterEventMessageDrivenEndpoint
public class XmppRosterEventMessageDrivenEndpoint
Describes an endpoint that is able to login as usual with a XmppConnectionFactory
and then emit Message
s when a particular event happens to the logged in users Roster
. We try
and generically propagate these events. In practical terms, there are a few events worth being notified of:
Presence
of a user in the Roster
has changed.Roster
has changed: entries added, deleted, etc.
Constructor Summary | |
---|---|
XmppRosterEventMessageDrivenEndpoint()
|
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 |
forwardRosterEventMessage(org.jivesoftware.smack.packet.Presence presence)
Called whenever an event happesn related to the Roster |
protected void |
onInit()
Subclasses may implement this for initialization logic. |
void |
setMessageMapper(InboundMessageMapper<org.jivesoftware.smack.packet.Presence> messageMapper)
|
void |
setRequestChannel(MessageChannel requestChannel)
|
void |
setXmppConnection(org.jivesoftware.smack.XMPPConnection xmppConnection)
This will be injected or configured via a xmpp-connection-factory element. |
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, getRequiredMetadataPersister, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.springframework.context.Lifecycle |
---|
isRunning, start, stop |
Constructor Detail |
---|
public XmppRosterEventMessageDrivenEndpoint()
Method Detail |
---|
public void setXmppConnection(org.jivesoftware.smack.XMPPConnection xmppConnection)
xmppConnection
- the connectionpublic void setRequestChannel(MessageChannel requestChannel)
requestChannel
- the channel on which the inbound message should be sentprotected void doStart()
AbstractEndpoint
AbstractEndpoint.lifecycleLock
.
doStart
in class AbstractEndpoint
protected void doStop()
AbstractEndpoint
AbstractEndpoint.lifecycleLock
.
doStop
in class AbstractEndpoint
protected void onInit() throws Exception
IntegrationObjectSupport
onInit
in class IntegrationObjectSupport
Exception
protected void forwardRosterEventMessage(org.jivesoftware.smack.packet.Presence presence)
Roster
presence
- the Presence
object representing the new state (optional)public void setMessageMapper(InboundMessageMapper<org.jivesoftware.smack.packet.Presence> messageMapper)
|
Spring Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |