|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.instantMessaging.InstantMessagingClient
public class InstantMessagingClient
Description:
Instant Messaging Client class based on the open source library SMACK
(www.igniterealtime.org). It provides connection to the IM-server, sends
presence packets, listens to messages and subscription requests. Methods that
mention the velocity rendering stuff are uses by template files that render
the html-response that for they dont have references in the java source code.
| Method Summary | |
|---|---|
void |
addSubscriptionListener()
By adding this method (right now added to the constructor) we do have auto subscription. |
java.lang.String |
buddyCountOnline()
Used by Velocity renderer |
void |
closeConnection(boolean closeSynchronously)
Close the connection to the server |
java.lang.String |
getChatUsername()
in case multiple olat instances use one single jabber server, username needs to be distinguished by instance id |
org.jivesoftware.smack.XMPPConnection |
getConnection()
|
java.lang.String |
getDefaultRosterStatus()
|
GroupChatManagerController |
getGroupChatManagerController()
access the per user instance of the group chat manager |
java.lang.String |
getJid()
|
java.lang.String |
getPassword()
|
org.jivesoftware.smack.packet.Presence.Mode |
getPresenceMode()
|
java.lang.String |
getRecentPresenceStatusMode()
|
org.jivesoftware.smack.Roster |
getRoster()
|
java.lang.String |
getServerName()
|
java.lang.String |
getUsername()
|
boolean |
isChatDisabled()
|
boolean |
isConnected()
|
void |
sendPresence(org.jivesoftware.smack.packet.Presence.Type type,
java.lang.String status,
int priority,
org.jivesoftware.smack.packet.Presence.Mode mode)
change jabber status. |
void |
sendPresenceAutoStatusIdle()
|
void |
sendPresenceAvailable(org.jivesoftware.smack.packet.Presence.Mode mode)
send a presence packet "available" with a certain mode e.g. |
void |
sendPresenceUnavailable()
send a presence packet "unavailable" to all buddies |
void |
setGroupChatManager(GroupChatManagerController groupChatManagerCtrl)
set the per user instance of the group chat manager |
void |
setIsConnected(boolean isConnected)
|
void |
setRoster(org.jivesoftware.smack.Roster roster)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void sendPresence(org.jivesoftware.smack.packet.Presence.Type type,
java.lang.String status,
int priority,
org.jivesoftware.smack.packet.Presence.Mode mode)
type - status - priority - mode - public void sendPresenceAvailable(org.jivesoftware.smack.packet.Presence.Mode mode)
mode - public void sendPresenceUnavailable()
public void addSubscriptionListener()
public java.lang.String getJid()
public org.jivesoftware.smack.packet.Presence.Mode getPresenceMode()
public org.jivesoftware.smack.Roster getRoster()
public void setRoster(org.jivesoftware.smack.Roster roster)
roster - public void closeConnection(boolean closeSynchronously)
public boolean isChatDisabled()
public java.lang.String getRecentPresenceStatusMode()
public java.lang.String buddyCountOnline()
public java.lang.String getPassword()
public java.lang.String getUsername()
public java.lang.String getChatUsername()
public boolean isConnected()
public void setIsConnected(boolean isConnected)
public org.jivesoftware.smack.XMPPConnection getConnection()
public java.lang.String getServerName()
public void sendPresenceAutoStatusIdle()
public void setGroupChatManager(GroupChatManagerController groupChatManagerCtrl)
groupChatManagerController - public GroupChatManagerController getGroupChatManagerController()
public java.lang.String getDefaultRosterStatus()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||