|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.echomine.jabber.JabberClientService
public class JabberClientService
the clients service contains the methods that you will use 90% of the time. For the rest, you will need to manually create the individual methods (should be easy) and work with the message object directly. The service relates to working with client-related information, such as obtaining a client's last signed on time. The functionality is similar to the User Service, except that it deals with the other clients rather than with your own information.
Constructor Summary | |
---|---|
JabberClientService(JabberSession session)
|
Method Summary | |
---|---|
long |
getClientLastOnline(JID jid)
this method works two ways. |
Element |
getPrivateData(java.lang.String elemName,
java.lang.String ns)
Provides a convenient way to send a request to retrieve private data. |
void |
sendIdleTimeReply(JID jid,
java.lang.String msgID,
long seconds)
sends an idle time reply back to the client who sent us the request. |
java.lang.String |
sendOutOfBandRequest(JID jid,
java.lang.String url,
java.lang.String desc)
Provides a convenient way to send an OOB request to the specified user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JabberClientService(JabberSession session)
Method Detail |
---|
public long getClientLastOnline(JID jid) throws SendMessageFailedException
BUG: Currently, Jabber Instant Messenger does not send the Last Idle Time message correctly; it is not sending back the result with the ID of the request message. Thus, synchronized messaging will fail. However, if you're using unsynchronized messaging, then it should be ok since you're not dependent on the ID.
SendMessageFailedException
public void sendIdleTimeReply(JID jid, java.lang.String msgID, long seconds) throws SendMessageFailedException
jid
- the jid of the user who submitted the requestmsgID
- the message id of the request messageseconds
- the idle time in seconds
SendMessageFailedException
public java.lang.String sendOutOfBandRequest(JID jid, java.lang.String url, java.lang.String desc) throws SendMessageFailedException
jid
- the user JID to send this request tourl
- the URL to retrieve the filedesc
- the description of the URL
SendMessageFailedException
public Element getPrivateData(java.lang.String elemName, java.lang.String ns) throws SendMessageFailedException
elemName
- the element name that the private data is stored asns
- the namespace that the private data is stored in
SendMessageFailedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |