|
IP*Works! V9 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
ipworks.XmppPresenceEvent
public class XmppPresenceEvent
This event is fired when the presence of a subscribed entity changes.
This event contains the availability and status information of a particular Jabber entity to whom this entity has a subscription.
Because a user can log in multiple times using the same account, the XMPP bean will parse the user's Jabber ID into the User , Domain and Resource parameters so that the client can easily track which instance of the account sent the presence.
The XMPP protocol permits XMPP (Jabber) clients to communicate
with foreign IM networks such as AIM, MSN, SMS, and others through the
use of gateway servers that translate between the foreign protocol and
XMPP. When sending or receiving presence information, messages, or
subscription requests, Domain will be a gateway for the
foreign network on which the contact resides and with
which this user has registered an account for that foreign network.
The Register
method can be used to register with a foreign network
gateway.
Availability corresponds to the Presence
property
of the bean, with the same possible values:
By default, the bean sets the client presence to pcChat , meaning that the user is available. To change the initial status sent by the bean set Presence
to the desired presence before calling Connect
.
Note: offline is not officially supported by the XMPP specification, however some XMPP server implementations may recognize the value. Setting the client's presence state to this value may cause the server to respond with an Error
.
Status corresponds to the Status
property. This value
may be any random string, including the empty string, "".
Xmpp
,
Xmpp.PresenceEvent
,
Serialized FormField Summary | |
---|---|
int |
availability
|
java.lang.String |
domain
|
java.lang.String |
resource
|
java.lang.String |
status
|
java.lang.String |
user
|
Fields inherited from class java.util.EventObject |
---|
source |
Method Summary |
---|
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.lang.String user
public java.lang.String domain
public java.lang.String resource
public int availability
public java.lang.String status
|
IP*Works! V9 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |