tigase.jaxmpp.core.client.xmpp.modules.presence
Class PresenceModule

java.lang.Object
  extended by tigase.jaxmpp.core.client.xmpp.modules.AbstractStanzaModule<Presence>
      extended by tigase.jaxmpp.core.client.xmpp.modules.presence.PresenceModule
All Implemented Interfaces:
XmppModule

public class PresenceModule
extends AbstractStanzaModule<Presence>


Nested Class Summary
static class PresenceModule.PresenceEvent
           
 
Field Summary
static EventType BeforeInitialPresence
           
static EventType BeforePresenceSend
           
static EventType ContactAvailable
           
static EventType ContactChangedPresence
           
static EventType ContactUnavailable
           
static EventType ContactUnsubscribed
           
static Criteria CRIT
           
static EventType SubscribeRequest
           
 
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)
           
 void subscribe(JID jid)
           
 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

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
Constructor Detail

PresenceModule

public PresenceModule(Observable parentObservable,
                      SessionObject sessionObject,
                      PacketWriter packetWriter)
Method Detail

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.