|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface XMPPService
Interface for accessing XMPP status information, sending XMPP messages, and parsing XMPP responses.
| Method Summary | |
|---|---|
Presence |
getPresence(JID jabberId)
Given a JID, look up the user's status and return it. |
Presence |
getPresence(JID jabberId,
JID fromJid)
Given a JID, look up the user's status and return it. |
Message |
parseMessage(HttpServletRequest request)
Parse the incoming message provided in request. |
void |
sendInvitation(JID jabberId)
Given a JID, sends a chat invitation. |
void |
sendInvitation(JID jabberId,
JID fromJid)
Given a JID, sends a chat invitation. |
SendResponse |
sendMessage(Message message)
Send provided message to specified JIDs. |
| Method Detail |
|---|
Presence getPresence(JID jabberId)
jabberId - JID of the user whose presence should be fetched.
java.lang.IllegalArgumentException - if the id is not valid
Presence getPresence(JID jabberId,
JID fromJid)
jabberId - JID of the user whose presence should be fetched.fromJid - JID of the chat bot. Can be null.
java.lang.IllegalArgumentException - if the id is not validvoid sendInvitation(JID jabberId)
jabberId - JID of the user to invite.
java.lang.IllegalArgumentException - if the id is not valid
void sendInvitation(JID jabberId,
JID fromJid)
fromJid - JID of the chat bot. Can be null.
java.lang.IllegalArgumentException - if the id is not validSendResponse sendMessage(Message message)
message - Message to send.
java.lang.IllegalArgumentException - if the message or ids are not valid
Message parseMessage(HttpServletRequest request)
throws java.io.IOException
request. This
method should only be called from within an XMPP webhook.
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||