|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.xmpp.connection.impl.XMPPMessenger
public class XMPPMessenger
Created by The eXo Platform SAS.
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
LOGGER
Logger. |
| Constructor Summary | |
|---|---|
XMPPMessenger(org.exoplatform.container.xml.InitParams params)
|
|
| Method Summary | |
|---|---|
static long |
getCloseSessionTime()
|
static org.jivesoftware.smack.ConnectionConfiguration |
getConnectionConfiguration()
|
static int |
getDisconnectTime()
|
XMPPSession |
getSession(java.lang.String username)
Get XMPP session for given user. |
UIStateSession |
getUISateSession(java.lang.String username)
|
void |
login(java.lang.String username,
java.lang.String password,
UserInfoService userInfoService,
org.exoplatform.ws.frameworks.cometd.transport.ContinuationServiceDelegate delegate,
HistoryImpl history,
java.util.ResourceBundle rb)
Connect to XMPP server. |
void |
logout(java.lang.String username)
Close XMPP connection for given user and remove this session from the sessions list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.commons.logging.Log LOGGER
| Constructor Detail |
|---|
public XMPPMessenger(org.exoplatform.container.xml.InitParams params)
params - the initParms| Method Detail |
|---|
public static org.jivesoftware.smack.ConnectionConfiguration getConnectionConfiguration()
public static long getCloseSessionTime()
public static int getDisconnectTime()
public void login(java.lang.String username,
java.lang.String password,
UserInfoService userInfoService,
org.exoplatform.ws.frameworks.cometd.transport.ContinuationServiceDelegate delegate,
HistoryImpl history,
java.util.ResourceBundle rb)
throws org.jivesoftware.smack.XMPPException
username - the user name.password - the password.
org.jivesoftware.smack.XMPPException - the XMPPExceptionpublic void logout(java.lang.String username)
username - the user name.public XMPPSession getSession(java.lang.String username)
username - the user name.
public UIStateSession getUISateSession(java.lang.String username)
username - the user name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||