|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttigase.xmpp.impl.Presence
public abstract class Presence
Describe class Presence here. Created: Wed Feb 22 07:30:03 2006
| Field Summary | |
|---|---|
static java.lang.String |
DIRECT_PRESENCE
DIRECT_PRESENCE is a key in temporary session data for
the collection of JIDs where direct presence was sent. |
static java.lang.String |
PRESENCE_ELEMENT_NAME
|
protected static java.lang.String |
XMLNS
|
| Constructor Summary | |
|---|---|
Presence()
|
|
| Method Summary | |
|---|---|
protected static void |
addDirectPresenceJID(java.lang.String jid,
XMPPResourceConnection session)
|
protected static void |
broadcastDirectPresences(StanzaType t,
XMPPResourceConnection session,
java.util.Queue<Packet> results,
tigase.xml.Element pres)
|
protected static void |
broadcastOffline(XMPPResourceConnection session,
java.util.Queue<Packet> results,
java.util.Map<java.lang.String,java.lang.Object> settings)
sendPresenceBroadcast method broadcasts given presence
to all budies from roster and to all users to which direct presence
was sent. |
protected static void |
broadcastProbe(XMPPResourceConnection session,
java.util.Queue<Packet> results,
java.util.Map<java.lang.String,java.lang.Object> settings)
sendPresenceBroadcast method broadcasts given presence
to all budies from roster and to all users to which direct presence
was sent. |
protected static void |
forwardPresence(java.util.Queue<Packet> results,
Packet packet,
java.lang.String from)
|
protected static void |
outInitialAnonymous(Packet packet,
XMPPResourceConnection session,
java.util.Queue<Packet> results)
|
static void |
process(Packet packet,
XMPPResourceConnection session,
NonAuthUserRepository repo,
java.util.Queue<Packet> results,
java.util.Map<java.lang.String,java.lang.Object> settings)
|
protected static void |
removeDirectPresenceJID(java.lang.String jid,
XMPPResourceConnection session)
|
protected static void |
resendPendingInRequests(XMPPResourceConnection session,
java.util.Queue<Packet> results)
|
protected static void |
sendPresence(StanzaType t,
java.lang.String to,
java.lang.String from,
java.util.Queue<Packet> results,
tigase.xml.Element pres)
|
protected static void |
sendPresenceBroadcast(StanzaType t,
XMPPResourceConnection session,
java.util.EnumSet<RosterAbstract.SubscriptionType> subscrs,
java.util.Queue<Packet> results,
tigase.xml.Element pres,
java.util.Map<java.lang.String,java.lang.Object> settings)
sendPresenceBroadcast method broadcasts given presence
to all budies from roster and to all users to which direct presence
was sent. |
static void |
stopped(XMPPResourceConnection session,
java.util.Queue<Packet> results,
java.util.Map<java.lang.String,java.lang.Object> settings)
stopped method is called when user disconnects or logs-out. |
protected static void |
updateOfflineChange(XMPPResourceConnection session,
java.util.Queue<Packet> results)
updateOfflineChange method broadcast off-line presence
to all other user active resources. |
protected static void |
updatePresenceChange(tigase.xml.Element presence,
XMPPResourceConnection session,
java.util.Queue<Packet> results)
updatePresenceChange method is used to broadcast
to all active resources presence stanza received from other users, like
incoming avaiability presence, subscription presence and so on... |
protected static void |
updateUserResources(tigase.xml.Element presence,
XMPPResourceConnection session,
java.util.Queue<Packet> results)
updateUserResources method is used to broadcast to all
other resources presence stanza from one user resource. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DIRECT_PRESENCE
DIRECT_PRESENCE is a key in temporary session data for
the collection of JIDs where direct presence was sent.
To all these addresses unavailable presence must be sent when user
disconnects.
public static final java.lang.String PRESENCE_ELEMENT_NAME
protected static final java.lang.String XMLNS
| Constructor Detail |
|---|
public Presence()
| Method Detail |
|---|
public static void stopped(XMPPResourceConnection session,
java.util.Queue<Packet> results,
java.util.Map<java.lang.String,java.lang.Object> settings)
stopped method is called when user disconnects or logs-out.
session - a XMPPResourceConnection valueresults - settings -
protected static void broadcastOffline(XMPPResourceConnection session,
java.util.Queue<Packet> results,
java.util.Map<java.lang.String,java.lang.Object> settings)
throws NotAuthorizedException,
TigaseDBException
sendPresenceBroadcast method broadcasts given presence
to all budies from roster and to all users to which direct presence
was sent.
session - a XMPPResourceConnection valueresults - settings -
NotAuthorizedException - if an error occurs
TigaseDBException
protected static void broadcastProbe(XMPPResourceConnection session,
java.util.Queue<Packet> results,
java.util.Map<java.lang.String,java.lang.Object> settings)
throws NotAuthorizedException,
TigaseDBException
sendPresenceBroadcast method broadcasts given presence
to all budies from roster and to all users to which direct presence
was sent.
session - a XMPPResourceConnection valueresults - settings -
NotAuthorizedException - if an error occurs
TigaseDBException
protected static void sendPresenceBroadcast(StanzaType t,
XMPPResourceConnection session,
java.util.EnumSet<RosterAbstract.SubscriptionType> subscrs,
java.util.Queue<Packet> results,
tigase.xml.Element pres,
java.util.Map<java.lang.String,java.lang.Object> settings)
throws NotAuthorizedException,
TigaseDBException
sendPresenceBroadcast method broadcasts given presence
to all budies from roster and to all users to which direct presence
was sent.
t - a StanzaType valuesession - a XMPPResourceConnection valuesubscrs - results - pres - an Element valuesettings -
NotAuthorizedException - if an error occurs
TigaseDBException
protected static void broadcastDirectPresences(StanzaType t,
XMPPResourceConnection session,
java.util.Queue<Packet> results,
tigase.xml.Element pres)
throws NotAuthorizedException,
TigaseDBException
NotAuthorizedException
TigaseDBException
protected static void resendPendingInRequests(XMPPResourceConnection session,
java.util.Queue<Packet> results)
throws NotAuthorizedException,
TigaseDBException
NotAuthorizedException
TigaseDBException
protected static void updateOfflineChange(XMPPResourceConnection session,
java.util.Queue<Packet> results)
throws NotAuthorizedException
updateOfflineChange method broadcast off-line presence
to all other user active resources.
session - a XMPPResourceConnection valueresults -
NotAuthorizedException - if an error occurs
protected static void updateUserResources(tigase.xml.Element presence,
XMPPResourceConnection session,
java.util.Queue<Packet> results)
throws NotAuthorizedException
updateUserResources method is used to broadcast to all
other resources presence stanza from one user resource.
So if new resource connects this method updates presence information about
new resource to old resources and about old resources to new resource.
presence - an Element presence received from other users,
we have to change 'to' attribute to full resource JID.session - a XMPPResourceConnection value keeping
connection session object.results -
NotAuthorizedException - if an error occurs
protected static void updatePresenceChange(tigase.xml.Element presence,
XMPPResourceConnection session,
java.util.Queue<Packet> results)
throws NotAuthorizedException
updatePresenceChange method is used to broadcast
to all active resources presence stanza received from other users, like
incoming avaiability presence, subscription presence and so on...
Initial presences are however sent only to those resources which
already have sent initial presence.
presence - an Element presence received from other users,
we have to change 'to' attribute to full resource JID.session - a XMPPResourceConnection value keeping
connection session object.results -
NotAuthorizedException - if an error occurs
protected static void forwardPresence(java.util.Queue<Packet> results,
Packet packet,
java.lang.String from)
protected static void sendPresence(StanzaType t,
java.lang.String to,
java.lang.String from,
java.util.Queue<Packet> results,
tigase.xml.Element pres)
protected static void addDirectPresenceJID(java.lang.String jid,
XMPPResourceConnection session)
protected static void removeDirectPresenceJID(java.lang.String jid,
XMPPResourceConnection session)
protected static void outInitialAnonymous(Packet packet,
XMPPResourceConnection session,
java.util.Queue<Packet> results)
throws NotAuthorizedException
NotAuthorizedException
public static void process(Packet packet,
XMPPResourceConnection session,
NonAuthUserRepository repo,
java.util.Queue<Packet> results,
java.util.Map<java.lang.String,java.lang.Object> settings)
throws XMPPException
XMPPException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||