|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface XMPPSession
Created by The eXo Platform SAS.
| Method Summary | |
|---|---|
void |
addBuddy(java.lang.String username,
java.lang.String nickname,
java.lang.String group)
Add new buddy to roster. |
boolean |
addTransport(Transport transport,
java.lang.String remoteUser,
java.lang.String remotePassword,
boolean autoLogin)
Check is Transport supported and add it to List
of available transports. |
void |
askForSubscription(java.lang.String username,
java.lang.String nickname)
Ask for subscription to user with given name. |
void |
banUser(java.lang.String room,
java.lang.String username,
java.lang.String reason)
|
void |
changeAvailabilityStatusInRoom(java.lang.String room,
java.lang.String status,
java.lang.String mode)
Change status in the room (e.g Extend Away). |
void |
changeNickname(java.lang.String room,
java.lang.String nickname)
Change nickname in the room. |
void |
changeSubject(java.lang.String room,
java.lang.String newSubject)
Change subject of the room. |
boolean |
cleanBuddiesList()
Clean buddies list. |
void |
close()
Close current connection and send notification to buddies. |
org.jivesoftware.smackx.muc.MultiUserChat |
configRoom(java.lang.String room,
ConfigRoomBean configRoom)
Configure the group chat. |
FormBean |
createRoom(java.lang.String room,
java.lang.String nickname)
Create new group chat. |
void |
declineRoom(java.lang.String room,
java.lang.String inviter,
java.lang.String reason)
Decline the invitation to the room. |
java.lang.Boolean |
destroyRoom(java.lang.String room,
java.lang.String reason,
java.lang.String altRoom)
Destroy the group chat. |
java.util.List<HistoricalMessage> |
getAllHistory(java.lang.String usernameto,
java.lang.String usernamefrom,
boolean isGroupChat)
Get history. |
java.util.List<org.jivesoftware.smack.packet.Presence> |
getBuddiesPresense()
Get list of Presence for all buddies for current user. |
org.jivesoftware.smack.RosterEntry |
getBuddy(java.lang.String name)
Return the roster entry by the name of user. |
FormBean |
getConfigFormRoom(java.lang.String room)
get configuration form for group chat. |
org.jivesoftware.smack.XMPPConnection |
getConnection()
|
java.util.List<HistoricalMessage> |
getHistoryBetweenDate(java.lang.String usernameto,
java.lang.String usernamefrom,
boolean isGroupChat,
java.util.Date dateFrom,
java.util.Date dateTo)
Get history between two date. |
java.util.List<HistoricalMessage> |
getHistoryFromDateToNow(java.lang.String usernameto,
java.lang.String usernamefrom,
boolean isGroupChat,
java.util.Date dateFrom)
Get history between the date and current time. |
java.util.List<Interlocutor> |
getInterlocutors(java.lang.String username)
Get all interlocutors of user. |
java.util.List<java.lang.String> |
getJoinedRooms()
Get already joined rooms. |
org.jivesoftware.smackx.muc.MultiUserChat |
getMultiUserChat(java.lang.String room)
|
java.util.List<HistoricalMessage> |
getNotRecieveMessages()
Get all not received message. |
org.jivesoftware.smackx.muc.RoomInfo |
getRoomInfo(java.lang.String room)
|
FullRoomInfoBean |
getRoomInfoBean(java.lang.String room)
Get full information about room. |
org.jivesoftware.smackx.Form |
getSearchForm(java.lang.String searchService)
Get form for searching users. |
java.util.List<java.lang.String> |
getSearchServices()
|
UserInfo |
getUserInfo(java.lang.String userID)
Get the information about user by user id. |
java.lang.String |
getUsername()
Get the username. |
java.lang.Boolean |
inviteToRoom(java.lang.String room,
java.lang.String invitee,
java.lang.String reason)
Invite to the room. |
java.lang.Boolean |
isJoin(java.lang.String room)
True if join in the room. |
void |
joinRoom(java.lang.String room,
java.lang.String nickname,
java.lang.String password)
Join to the group chat. |
void |
kickUser(java.lang.String room,
java.lang.String nickname,
java.lang.String reason)
|
java.lang.Boolean |
leaveRoom(java.lang.String room)
Leave the room. |
void |
manageAffiliation(java.lang.String room,
java.lang.String username,
java.lang.String affiliation,
java.lang.String command)
|
void |
manageRole(java.lang.String room,
java.lang.String nickname,
java.lang.String role,
java.lang.String command)
The manage role of user in the room. |
void |
messageReceive(java.lang.String messageId)
Set that message is received. |
void |
removeAllTransport()
Remove all transport subscribed for current user. |
boolean |
removeBuddy(java.lang.String fullUserID)
Remove remote user from contacts list. |
boolean |
removeTransport(Transport transport)
Remove transport from available list. |
org.jivesoftware.smackx.ReportedData |
searchUser(java.lang.String search,
boolean byUsername,
boolean byName,
boolean byEmail,
java.lang.String searchService)
|
void |
sendMessage(org.jivesoftware.smack.packet.Message message)
Send message. |
void |
sendMessageToMUC(java.lang.String room,
java.lang.String body)
Send message to the room. |
void |
sendPresence(org.jivesoftware.smack.packet.Presence presence)
Change presence for current user. |
void |
subscribeUser(java.lang.String fullUserID)
Subscribe remote user and send message to that user. |
void |
subscribeUser(java.lang.String forUser,
java.lang.String serviceName)
Subscribe remote user and send message to that user. |
void |
unsubscribeUser(java.lang.String fullUserID)
Unsubscribe remote user and send message to that user. |
void |
unsubscribeUser(java.lang.String forUser,
java.lang.String serviceName)
Unsubscribe remote user and send message to that user. |
void |
updateBuddy(java.lang.String username,
java.lang.String nickname,
java.lang.String group)
Update the buddy in roster. |
| Method Detail |
|---|
boolean addTransport(Transport transport,
java.lang.String remoteUser,
java.lang.String remotePassword,
boolean autoLogin)
Transport supported and add it to List
of available transports. User can use remote accounts on other IM servers.
(ICQ, Yahoo, etc).
transport - the name of transportremoteUser - the usernameremotePassword - the passwordautoLogin - not working now
void addBuddy(java.lang.String username,
java.lang.String nickname,
java.lang.String group)
throws org.jivesoftware.smack.XMPPException
username - the usernamenickname - the nicknamegroup - the group
org.jivesoftware.smack.XMPPException - the XMPPException
void askForSubscription(java.lang.String username,
java.lang.String nickname)
username - the usernamenickname - the nickname
org.jivesoftware.smack.XMPPException - the XMPPExceptionorg.jivesoftware.smack.RosterEntry getBuddy(java.lang.String name)
name - the username
void updateBuddy(java.lang.String username,
java.lang.String nickname,
java.lang.String group)
throws org.jivesoftware.smack.XMPPException
username - the useranmenickname - the nickanmegroup - the group
org.jivesoftware.smack.XMPPException - the XMPPException
boolean cleanBuddiesList()
throws org.jivesoftware.smack.XMPPException
org.jivesoftware.smack.XMPPExceptionvoid close()
java.util.List<org.jivesoftware.smack.packet.Presence> getBuddiesPresense()
Presence for all buddies for current user.
Presence.org.jivesoftware.smack.XMPPConnection getConnection()
FormBean createRoom(java.lang.String room,
java.lang.String nickname)
throws org.jivesoftware.smack.XMPPException
room - the room namenickname - the nickname in this room
org.jivesoftware.smack.XMPPException - the XMPPException
FormBean getConfigFormRoom(java.lang.String room)
throws org.jivesoftware.smack.XMPPException
room - the room name
org.jivesoftware.smack.XMPPException - the XMPPException
org.jivesoftware.smackx.muc.MultiUserChat configRoom(java.lang.String room,
ConfigRoomBean configRoom)
throws org.jivesoftware.smack.XMPPException
room - the room nameconfigRoom - the configuration of group chat
org.jivesoftware.smack.XMPPException - the XMPPException
void joinRoom(java.lang.String room,
java.lang.String nickname,
java.lang.String password)
throws org.jivesoftware.smack.XMPPException
room - the room namenickname - the nicknamepassword - the password
org.jivesoftware.smack.XMPPException - the XMPPException
java.lang.Boolean destroyRoom(java.lang.String room,
java.lang.String reason,
java.lang.String altRoom)
throws org.jivesoftware.smack.XMPPException
room - the room namereason - the reasonaltRoom - the name of alter room
org.jivesoftware.smack.XMPPException - the XMPPException
FullRoomInfoBean getRoomInfoBean(java.lang.String room)
throws org.jivesoftware.smack.XMPPException
room - the name of room
org.jivesoftware.smack.XMPPException - the XMPPException
java.lang.Boolean leaveRoom(java.lang.String room)
throws org.jivesoftware.smack.XMPPException
room - the room name
org.jivesoftware.smack.XMPPException - the XMPPException
void declineRoom(java.lang.String room,
java.lang.String inviter,
java.lang.String reason)
room - the roominviter - the inviterreason - the reason
org.jivesoftware.smack.XMPPException - the XMPPException
java.lang.Boolean inviteToRoom(java.lang.String room,
java.lang.String invitee,
java.lang.String reason)
throws org.jivesoftware.smack.XMPPException
room - the room nameinvitee - the inviteereason - the reason
org.jivesoftware.smack.XMPPException - the XMPPException
void manageRole(java.lang.String room,
java.lang.String nickname,
java.lang.String role,
java.lang.String command)
throws org.jivesoftware.smack.XMPPException
chat - nickname - the nicknamerole - the rolecommand - the command (grant or revoke)
org.jivesoftware.smack.XMPPException - the XMPPException
void manageAffiliation(java.lang.String room,
java.lang.String username,
java.lang.String affiliation,
java.lang.String command)
throws org.jivesoftware.smack.XMPPException
chat - username - the usernameaffiliation - the affiliatecommand - the command (grant or revoke)
org.jivesoftware.smack.XMPPException - the XMPPException
void kickUser(java.lang.String room,
java.lang.String nickname,
java.lang.String reason)
throws org.jivesoftware.smack.XMPPException
chat - nickname - the nicknamereason - the reason
org.jivesoftware.smack.XMPPException - the XMPPException
void banUser(java.lang.String room,
java.lang.String username,
java.lang.String reason)
throws org.jivesoftware.smack.XMPPException
chat - username - the usernamereason - the reason
org.jivesoftware.smack.XMPPException - the XMPPException
org.jivesoftware.smackx.Form getSearchForm(java.lang.String searchService)
throws org.jivesoftware.smack.XMPPException
searchService - the name of searchService
org.jivesoftware.smack.XMPPExceptionjava.util.List<java.lang.String> getSearchServices()
UserInfo getUserInfo(java.lang.String userID)
userID - the user id
java.lang.String getUsername()
void removeAllTransport()
throws org.jivesoftware.smack.XMPPException
org.jivesoftware.smack.XMPPException
boolean removeBuddy(java.lang.String fullUserID)
throws org.jivesoftware.smack.XMPPException
fullUserID - the full ID of remote user.
org.jivesoftware.smack.XMPPException
boolean removeTransport(Transport transport)
throws org.jivesoftware.smack.XMPPException
transport - the Transport.
org.jivesoftware.smack.XMPPException
org.jivesoftware.smackx.ReportedData searchUser(java.lang.String search,
boolean byUsername,
boolean byName,
boolean byEmail,
java.lang.String searchService)
throws org.jivesoftware.smack.XMPPException
search - the search string.byUsername - search in useranmebyName - search in namebyEmail - search in mailsearchService - the SearchService name.
org.jivesoftware.smack.XMPPExceptionvoid sendMessage(org.jivesoftware.smack.packet.Message message)
message - the message
void sendMessageToMUC(java.lang.String room,
java.lang.String body)
throws org.jivesoftware.smack.XMPPException
room - the room namebody - the body of message
org.jivesoftware.smack.XMPPException - the XMPPExceptionvoid sendPresence(org.jivesoftware.smack.packet.Presence presence)
presence - the new Presence.void subscribeUser(java.lang.String fullUserID)
fullUserID - the full ID of remote user.
void subscribeUser(java.lang.String forUser,
java.lang.String serviceName)
forUser - the remote user.serviceName - the service name.void unsubscribeUser(java.lang.String fullUserID)
fullUserID - the full ID of remote user.
void unsubscribeUser(java.lang.String forUser,
java.lang.String serviceName)
forUser - the remote user.serviceName - the service name.
java.util.List<HistoricalMessage> getAllHistory(java.lang.String usernameto,
java.lang.String usernamefrom,
boolean isGroupChat)
usernameto - the username who recive messageusernamefrom - the username who send messageisGroupChat - is the group chat
java.util.List<HistoricalMessage> getHistoryBetweenDate(java.lang.String usernameto,
java.lang.String usernamefrom,
boolean isGroupChat,
java.util.Date dateFrom,
java.util.Date dateTo)
usernameto - the username who recive messageusernamefrom - the username who send messageisGroupChat - is the group chatdateFrom - the begindateTo - the end
java.util.List<HistoricalMessage> getHistoryFromDateToNow(java.lang.String usernameto,
java.lang.String usernamefrom,
boolean isGroupChat,
java.util.Date dateFrom)
usernameto - the username who recive messageusernamefrom - the username who send messageisGroupChat - is the group chatdateFrom - the begin
java.util.List<Interlocutor> getInterlocutors(java.lang.String username)
username - thr username
void messageReceive(java.lang.String messageId)
messageId - the id of messagejava.util.List<HistoricalMessage> getNotRecieveMessages()
org.jivesoftware.smackx.muc.MultiUserChat getMultiUserChat(java.lang.String room)
throws org.jivesoftware.smack.XMPPException
room - the name of room
org.jivesoftware.smack.XMPPException - the XMPPException
java.lang.Boolean isJoin(java.lang.String room)
throws org.jivesoftware.smack.XMPPException
room - the room name
org.jivesoftware.smack.XMPPException - the XMPPExceptionjava.util.List<java.lang.String> getJoinedRooms()
void changeSubject(java.lang.String room,
java.lang.String newSubject)
throws org.jivesoftware.smack.XMPPException
room - the room namenewSubject - the new subject
org.jivesoftware.smack.XMPPException - the XMPPException
void changeAvailabilityStatusInRoom(java.lang.String room,
java.lang.String status,
java.lang.String mode)
throws org.jivesoftware.smack.XMPPException
room - the room namestatus - the statusmode - the mode
org.jivesoftware.smack.XMPPException - the XMPPException
void changeNickname(java.lang.String room,
java.lang.String nickname)
throws org.jivesoftware.smack.XMPPException
room - the room namenickname - the new nickname
org.jivesoftware.smack.XMPPException - the XMPPException
org.jivesoftware.smackx.muc.RoomInfo getRoomInfo(java.lang.String room)
throws org.jivesoftware.smack.XMPPException
org.jivesoftware.smack.XMPPException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||