tigase.jaxmpp.core.client.xmpp.modules.presence
Class PresenceModule
java.lang.Object
tigase.jaxmpp.core.client.xmpp.modules.AbstractStanzaModule<Presence>
tigase.jaxmpp.core.client.xmpp.modules.presence.PresenceModule
- All Implemented Interfaces:
- XmppModule
public class PresenceModule
- extends AbstractStanzaModule<Presence>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeforeInitialPresence
public static final EventType BeforeInitialPresence
BeforePresenceSend
public static final EventType BeforePresenceSend
ContactAvailable
public static final EventType ContactAvailable
ContactChangedPresence
public static final EventType ContactChangedPresence
ContactUnavailable
public static final EventType ContactUnavailable
ContactUnsubscribed
public static final EventType ContactUnsubscribed
CRIT
public static final Criteria CRIT
SubscribeRequest
public static final EventType SubscribeRequest
PresenceModule
public PresenceModule(Observable parentObservable,
SessionObject sessionObject,
PacketWriter packetWriter)
contactOffline
protected void contactOffline(JID jid)
throws JaxmppException
- Throws:
JaxmppException
fireBeforePresenceSend
protected boolean fireBeforePresenceSend(Presence presence)
throws JaxmppException
- Parameters:
presence -
- Returns:
true if event is cancelled
- Throws:
JaxmppException
getCriteria
public Criteria getCriteria()
- Description copied from interface:
XmppModule
- Criteria
- Returns:
getFeatures
public String[] getFeatures()
- Description copied from interface:
XmppModule
Returns features what are implemented by Module.
See Service
Discovery Features
- Returns:
- array of features
getPresence
public PresenceStore getPresence()
process
public void process(Presence presence)
throws JaxmppException
- Specified by:
process in class AbstractStanzaModule<Presence>
- Throws:
JaxmppException
sendInitialPresence
public void sendInitialPresence()
throws XMLException,
JaxmppException
- Throws:
XMLException
JaxmppException
setPresence
public void setPresence(Presence.Show show,
String status,
Integer priority)
throws XMLException,
JaxmppException
- Throws:
XMLException
JaxmppException
subscribe
public void subscribe(JID jid)
throws JaxmppException,
XMLException
- Throws:
JaxmppException
XMLException
subscribed
public void subscribed(JID jid)
throws JaxmppException,
XMLException
- Throws:
JaxmppException
XMLException
unsubscribe
public void unsubscribe(JID jid)
throws JaxmppException,
XMLException
- Throws:
JaxmppException
XMLException
unsubscribed
public void unsubscribed(JID jid)
throws JaxmppException,
XMLException
- Throws:
JaxmppException
XMLException
Copyright © 2006-2012 Tigase. All Rights Reserved.