org.springframework.integration.xmpp.presence
Class XmppRosterEventMessageSendingHandler
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.handler.AbstractMessageHandler
org.springframework.integration.xmpp.presence.XmppRosterEventMessageSendingHandler
- All Implemented Interfaces:
- BeanFactoryAware, BeanNameAware, InitializingBean, Lifecycle, Ordered, NamedComponent, MessageHandler, TrackableComponent
public class XmppRosterEventMessageSendingHandler
- extends AbstractMessageHandler
- implements Lifecycle
This class will facilitate publishing updated presence values for a given connection. This change happens on the
Roster.setSubscriptionMode(org.jivesoftware.smack.Roster.SubscriptionMode)
property.
- Since:
- 2.0
- Author:
- Josh Long, Oleg Zhurakousky
- See Also:
the mode (i.e.:
{@link org.jivesoftware.smack.packet.Presence.Mode#away})
,
the type (i.e.:
{@link org.jivesoftware.smack.packet.Presence.Type#available} )
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
afterPropertiesSet, getBeanFactory, getComponentName, getConversionService, getRequiredMetadataPersister, getTaskScheduler, onInit, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString |
XmppRosterEventMessageSendingHandler
public XmppRosterEventMessageSendingHandler()
setXmppConnection
public void setXmppConnection(org.jivesoftware.smack.XMPPConnection xmppConnection)
isRunning
public boolean isRunning()
- Specified by:
isRunning
in interface Lifecycle
start
public void start()
- Specified by:
start
in interface Lifecycle
stop
public void stop()
- Specified by:
stop
in interface Lifecycle
setMessageMapper
public void setMessageMapper(OutboundMessageMapper<org.jivesoftware.smack.packet.Presence> messageMapper)
- the MessageMapper is responsible for converting outbound Messages into status updates of type
Presence
- Parameters:
messageMapper
- mapper for the message into a Presence
instance
handleMessageInternal
protected void handleMessageInternal(Message<?> message)
throws Exception
- Specified by:
handleMessageInternal
in class AbstractMessageHandler
- Throws:
Exception
Copyright © 2010. All Rights Reserved.