|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttigase.jaxmpp.core.client.xmpp.modules.AbstractStanzaModule<Presence>
tigase.jaxmpp.core.client.xmpp.modules.presence.PresenceModule
public class PresenceModule
Module for handling presence information.
| Nested Class Summary | |
|---|---|
static class |
PresenceModule.PresenceEvent
Presence related event. |
| Field Summary | |
|---|---|
static EventType |
BeforeInitialPresence
Event fired before initial presence is sent. |
static EventType |
BeforePresenceSend
Event fired before each presence sent by client. |
static EventType |
ContactAvailable
Event fired when contact (understood as bare JID) becomes available. |
static EventType |
ContactChangedPresence
Event fired when contact changed his presence. |
static EventType |
ContactUnavailable
Event fired when contact (understood as bare JID) goes offline. |
static EventType |
ContactUnsubscribed
Event fired when contact is unsubscribed. |
static Criteria |
CRIT
|
static EventType |
SubscribeRequest
Event fired when subscription request is received. |
| Fields inherited from class tigase.jaxmpp.core.client.xmpp.modules.AbstractStanzaModule |
|---|
log, observable, sessionObject, writer |
| Constructor Summary | |
|---|---|
PresenceModule(Observable parentObservable,
SessionObject sessionObject,
PacketWriter packetWriter)
|
|
| Method Summary | |
|---|---|
protected void |
contactOffline(JID jid)
|
protected boolean |
fireBeforePresenceSend(Presence presence)
|
Criteria |
getCriteria()
Criteria |
String[] |
getFeatures()
Returns features what are implemented by Module. |
PresenceStore |
getPresence()
|
void |
process(Presence presence)
|
void |
sendInitialPresence()
|
void |
setPresence(Presence.Show show,
String status,
Integer priority)
Sends own presence. |
void |
subscribe(JID jid)
Subscribe for presence. |
void |
subscribed(JID jid)
|
void |
unsubscribe(JID jid)
|
void |
unsubscribed(JID jid)
|
| Methods inherited from class tigase.jaxmpp.core.client.xmpp.modules.AbstractStanzaModule |
|---|
addListener, addListener, process, removeAllListeners, removeListener, removeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final EventType BeforeInitialPresence
public static final EventType BeforePresenceSend
public static final EventType ContactAvailable
public static final EventType ContactChangedPresence
public static final EventType ContactUnavailable
public static final EventType ContactUnsubscribed
public static final Criteria CRIT
public static final EventType SubscribeRequest
| Constructor Detail |
|---|
public PresenceModule(Observable parentObservable,
SessionObject sessionObject,
PacketWriter packetWriter)
| Method Detail |
|---|
protected void contactOffline(JID jid)
throws JaxmppException
JaxmppException
protected boolean fireBeforePresenceSend(Presence presence)
throws JaxmppException
presence -
true if event is cancelled
JaxmppExceptionpublic Criteria getCriteria()
XmppModule
public String[] getFeatures()
XmppModuleReturns features what are implemented by Module.
See Service Discovery Features
public PresenceStore getPresence()
public void process(Presence presence)
throws JaxmppException
process in class AbstractStanzaModule<Presence>JaxmppException
public void sendInitialPresence()
throws XMLException,
JaxmppException
XMLException
JaxmppException
public void setPresence(Presence.Show show,
String status,
Integer priority)
throws XMLException,
JaxmppException
show - presence substate.status - human readable description of status.priority - priority.
XMLException
JaxmppException
public void subscribe(JID jid)
throws JaxmppException,
XMLException
jid - JID
JaxmppException
XMLException
public void subscribed(JID jid)
throws JaxmppException,
XMLException
JaxmppException
XMLException
public void unsubscribe(JID jid)
throws JaxmppException,
XMLException
JaxmppException
XMLException
public void unsubscribed(JID jid)
throws JaxmppException,
XMLException
JaxmppException
XMLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||