public class JabberClientService
extends java.lang.Object
| Constructor and Description |
|---|
JabberClientService(JabberSession session) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public JabberClientService(JabberSession session)
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.
SendMessageFailedExceptionpublic 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 secondsSendMessageFailedExceptionpublic 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 URLSendMessageFailedExceptionpublic 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 inSendMessageFailedExceptionCopyright © 2001-2005 Echomine. All Rights Reserved.