|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttigase.server.BasicComponent
tigase.server.AbstractMessageReceiver
tigase.server.xmppsession.SessionManager
public class SessionManager
Class SessionManager Created: Tue Nov 22 07:07:11 2005
| Field Summary | |
|---|---|
protected static java.lang.String |
ADMIN_COMMAND_NODE
|
protected java.util.concurrent.ConcurrentHashMap<tigase.xmpp.JID,XMPPResourceConnection> |
connectionsByFrom
A Map with connectionID as a key and an object with all the user connection data as a value |
| Fields inherited from class tigase.server.AbstractMessageReceiver |
|---|
HOUR, INCOMING_FILTERS_PROP_KEY, INCOMING_FILTERS_PROP_VAL, MAX_QUEUE_SIZE_PROP_KEY, MAX_QUEUE_SIZE_PROP_VAL, maxQueueSize, MINUTE, OUTGOING_FILTERS_PROP_KEY, OUTGOING_FILTERS_PROP_VAL, SECOND |
| Fields inherited from class tigase.server.BasicComponent |
|---|
admins, SCRIPTS_DIR_PROP_DEF, SCRIPTS_DIR_PROP_KEY, vHostManager |
| Fields inherited from interface tigase.server.xmppsession.SessionManagerHandler |
|---|
COMMIT_HANDLER_KEY |
| Fields inherited from interface tigase.disco.XMPPService |
|---|
CMD_FEATURES, DEF_FEATURES, INFO_XMLNS, ITEMS_XMLNS |
| Constructor Summary | |
|---|---|
SessionManager()
|
|
| Method Summary | |
|---|---|
protected boolean |
addOutPacket(Packet packet)
|
protected void |
addOutPackets(Packet packet,
XMPPResourceConnection conn,
java.util.Queue<Packet> results)
|
protected boolean |
addTrusted(tigase.xmpp.JID jid)
|
protected void |
closeConnection(tigase.xmpp.JID connectionId,
boolean closeOnly)
|
protected void |
closeSession(XMPPResourceConnection conn,
boolean closeOnly)
|
boolean |
containsJid(tigase.xmpp.JID jid)
Method description |
protected XMPPResourceConnection |
createUserSession(tigase.xmpp.JID conn_id,
java.lang.String domain)
|
protected boolean |
delTrusted(tigase.xmpp.JID jid)
|
protected boolean |
fastAddOutPacket(Packet packet)
|
tigase.xmpp.JID[] |
getConnectionIdsForJid(tigase.xmpp.JID jid)
Method description |
java.util.Map<java.lang.String,java.lang.Object> |
getDefaults(java.util.Map<java.lang.String,java.lang.Object> params)
Method description |
java.lang.String |
getDiscoCategoryType()
Method description |
java.lang.String |
getDiscoDescription()
Method description |
java.util.List<tigase.xml.Element> |
getDiscoFeatures(tigase.xmpp.JID from)
Method description |
tigase.xml.Element |
getDiscoInfo(java.lang.String node,
tigase.xmpp.JID jid,
tigase.xmpp.JID from)
Method description |
protected java.lang.Integer |
getMaxQueueSize(int def)
|
protected XMPPResourceConnection |
getResourceConnection(tigase.xmpp.JID jid)
|
protected XMPPSession |
getSession(tigase.xmpp.BareJID jid)
|
void |
getStatistics(StatisticsList list)
Method description |
protected XMPPResourceConnection |
getXMPPResourceConnection(tigase.xmpp.JID connId)
|
protected XMPPResourceConnection |
getXMPPResourceConnection(Packet p)
|
void |
handleLogin(java.lang.String userName,
XMPPResourceConnection conn)
Method description |
void |
handleLogout(java.lang.String userName,
XMPPResourceConnection conn)
Method description |
void |
handlePresenceSet(XMPPResourceConnection conn)
Method description |
void |
handleResourceBind(XMPPResourceConnection conn)
Method description |
boolean |
handlesLocalDomains()
Method description |
boolean |
hasCompleteJidsInfo()
Method description |
void |
initBindings(javax.script.Bindings binds)
Method description |
protected boolean |
isBrokenPacket(Packet p)
|
boolean |
isLocalDomain(java.lang.String domain,
boolean includeComponents)
Method description |
protected boolean |
isTrusted(tigase.xmpp.JID jid)
|
protected boolean |
isTrusted(java.lang.String jid)
|
protected XMPPResourceConnection |
loginUserSession(tigase.xmpp.JID conn_id,
java.lang.String domain,
tigase.xmpp.BareJID user_id,
java.lang.String resource,
ConnectionStatus conn_st,
java.lang.String xmpp_sessionId)
|
protected boolean |
processAdminsOrDomains(Packet packet)
|
protected boolean |
processCommand(Packet pc)
|
int |
processingThreads()
Method description |
void |
processPacket(Packet packet)
Method description |
protected void |
processPacket(Packet packet,
XMPPResourceConnection conn)
|
protected void |
registerNewSession(tigase.xmpp.BareJID userId,
XMPPResourceConnection conn)
|
protected void |
sendToAdmins(Packet packet)
|
void |
setName(java.lang.String name)
Method description |
void |
setProperties(java.util.Map<java.lang.String,java.lang.Object> props)
Method description |
boolean |
skipPrivacy()
Method description |
| Methods inherited from class tigase.server.AbstractMessageReceiver |
|---|
addOutPacketNB, addOutPackets, addOutPacketWithTimeout, addPacket, addPacketNB, addPackets, addRegexRouting, addTimerTask, addTimerTask, clearRegexRoutings, everyHour, everyMinute, everySecond, getRegexRoutings, hashCodeForPacket, isInRegexRoutings, newPacketId, processPacket, release, removeRegexRouting, setMaxQueueSize, setParent, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface tigase.server.ServerComponent |
|---|
getComponentId, getName, initializationCompleted, processPacket, release |
| Methods inherited from interface tigase.server.xmppsession.SessionManagerHandler |
|---|
getComponentId |
| Methods inherited from interface tigase.server.MessageReceiver |
|---|
getDefHostName |
| Field Detail |
|---|
protected static final java.lang.String ADMIN_COMMAND_NODE
protected java.util.concurrent.ConcurrentHashMap<tigase.xmpp.JID,XMPPResourceConnection> connectionsByFrom
| Constructor Detail |
|---|
public SessionManager()
| Method Detail |
|---|
public boolean containsJid(tigase.xmpp.JID jid)
containsJid in interface OnlineJidsReporterjid -
public tigase.xmpp.JID[] getConnectionIdsForJid(tigase.xmpp.JID jid)
getConnectionIdsForJid in interface OnlineJidsReporterjid -
public java.util.Map<java.lang.String,java.lang.Object> getDefaults(java.util.Map<java.lang.String,java.lang.Object> params)
getDefaults in interface ConfigurablegetDefaults in class AbstractMessageReceiverparams -
public java.lang.String getDiscoCategoryType()
getDiscoCategoryType in class BasicComponentpublic java.lang.String getDiscoDescription()
getDiscoDescription in class BasicComponentpublic java.util.List<tigase.xml.Element> getDiscoFeatures(tigase.xmpp.JID from)
getDiscoFeatures in interface XMPPServicegetDiscoFeatures in class BasicComponentfrom -
public tigase.xml.Element getDiscoInfo(java.lang.String node,
tigase.xmpp.JID jid,
tigase.xmpp.JID from)
getDiscoInfo in interface XMPPServicegetDiscoInfo in class BasicComponentnode - jid - from -
public void getStatistics(StatisticsList list)
getStatistics in interface StatisticsContainergetStatistics in class AbstractMessageReceiverlist -
public void handleLogin(java.lang.String userName,
XMPPResourceConnection conn)
handleLogin in interface SessionManagerHandleruserName - conn -
public void handleLogout(java.lang.String userName,
XMPPResourceConnection conn)
handleLogout in interface SessionManagerHandleruserName - conn - public void handlePresenceSet(XMPPResourceConnection conn)
handlePresenceSet in interface SessionManagerHandlerconn - public void handleResourceBind(XMPPResourceConnection conn)
handleResourceBind in interface SessionManagerHandlerconn - public boolean handlesLocalDomains()
handlesLocalDomains in interface VHostListenerhandlesLocalDomains in class BasicComponentpublic boolean hasCompleteJidsInfo()
hasCompleteJidsInfo in interface OnlineJidsReporterpublic void initBindings(javax.script.Bindings binds)
initBindings in class BasicComponentbinds -
public boolean isLocalDomain(java.lang.String domain,
boolean includeComponents)
isLocalDomain in interface SessionManagerHandlerdomain - includeComponents -
public void processPacket(Packet packet)
processPacket in class AbstractMessageReceiverpacket - public int processingThreads()
processingThreads in class AbstractMessageReceiverpublic void setName(java.lang.String name)
setName in interface ServerComponentsetName in class AbstractMessageReceivername - public void setProperties(java.util.Map<java.lang.String,java.lang.Object> props)
setProperties in interface ConfigurablesetProperties in class AbstractMessageReceiverprops - public boolean skipPrivacy()
protected boolean addOutPacket(Packet packet)
addOutPacket in class AbstractMessageReceiver
protected void addOutPackets(Packet packet,
XMPPResourceConnection conn,
java.util.Queue<Packet> results)
protected boolean addTrusted(tigase.xmpp.JID jid)
protected void closeConnection(tigase.xmpp.JID connectionId,
boolean closeOnly)
protected void closeSession(XMPPResourceConnection conn,
boolean closeOnly)
protected XMPPResourceConnection createUserSession(tigase.xmpp.JID conn_id,
java.lang.String domain)
throws tigase.util.TigaseStringprepException
tigase.util.TigaseStringprepExceptionprotected boolean delTrusted(tigase.xmpp.JID jid)
protected boolean fastAddOutPacket(Packet packet)
protected java.lang.Integer getMaxQueueSize(int def)
getMaxQueueSize in class AbstractMessageReceiverprotected XMPPResourceConnection getResourceConnection(tigase.xmpp.JID jid)
protected XMPPSession getSession(tigase.xmpp.BareJID jid)
protected XMPPResourceConnection getXMPPResourceConnection(tigase.xmpp.JID connId)
protected XMPPResourceConnection getXMPPResourceConnection(Packet p)
protected boolean isBrokenPacket(Packet p)
protected boolean isTrusted(tigase.xmpp.JID jid)
protected boolean isTrusted(java.lang.String jid)
protected XMPPResourceConnection loginUserSession(tigase.xmpp.JID conn_id,
java.lang.String domain,
tigase.xmpp.BareJID user_id,
java.lang.String resource,
ConnectionStatus conn_st,
java.lang.String xmpp_sessionId)
protected boolean processAdminsOrDomains(Packet packet)
protected boolean processCommand(Packet pc)
protected void processPacket(Packet packet,
XMPPResourceConnection conn)
protected void registerNewSession(tigase.xmpp.BareJID userId,
XMPPResourceConnection conn)
protected void sendToAdmins(Packet packet)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||