|
||||||||||
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 String |
ADMIN_COMMAND_NODE
|
protected 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,
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,
String domain)
|
protected boolean |
delTrusted(tigase.xmpp.JID jid)
|
protected boolean |
fastAddOutPacket(Packet packet)
|
tigase.xmpp.JID[] |
getConnectionIdsForJid(tigase.xmpp.JID jid)
Method description |
Map<String,Object> |
getDefaults(Map<String,Object> params)
Method description |
String |
getDiscoCategoryType()
Method description |
String |
getDiscoDescription()
Method description |
List<tigase.xml.Element> |
getDiscoFeatures(tigase.xmpp.JID from)
Method description |
tigase.xml.Element |
getDiscoInfo(String node,
tigase.xmpp.JID jid,
tigase.xmpp.JID from)
Method description |
protected 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(String userName,
XMPPResourceConnection conn)
Method description |
void |
handleLogout(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(String domain,
boolean includeComponents)
Method description |
protected boolean |
isTrusted(tigase.xmpp.JID jid)
|
protected boolean |
isTrusted(String jid)
|
protected XMPPResourceConnection |
loginUserSession(tigase.xmpp.JID conn_id,
String domain,
tigase.xmpp.BareJID user_id,
String resource,
ConnectionStatus conn_st,
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(String name)
Method description |
void |
setProperties(Map<String,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 String ADMIN_COMMAND_NODE
protected ConcurrentHashMap<tigase.xmpp.JID,XMPPResourceConnection> connectionsByFrom
Constructor Detail |
---|
public SessionManager()
Method Detail |
---|
public boolean containsJid(tigase.xmpp.JID jid)
containsJid
in interface OnlineJidsReporter
jid
-
public tigase.xmpp.JID[] getConnectionIdsForJid(tigase.xmpp.JID jid)
getConnectionIdsForJid
in interface OnlineJidsReporter
jid
-
public Map<String,Object> getDefaults(Map<String,Object> params)
getDefaults
in interface Configurable
getDefaults
in class AbstractMessageReceiver
params
-
public String getDiscoCategoryType()
getDiscoCategoryType
in class BasicComponent
public String getDiscoDescription()
getDiscoDescription
in class BasicComponent
public List<tigase.xml.Element> getDiscoFeatures(tigase.xmpp.JID from)
getDiscoFeatures
in interface XMPPService
getDiscoFeatures
in class BasicComponent
from
-
public tigase.xml.Element getDiscoInfo(String node, tigase.xmpp.JID jid, tigase.xmpp.JID from)
getDiscoInfo
in interface XMPPService
getDiscoInfo
in class BasicComponent
node
- jid
- from
-
public void getStatistics(StatisticsList list)
getStatistics
in interface StatisticsContainer
getStatistics
in class AbstractMessageReceiver
list
- public void handleLogin(String userName, XMPPResourceConnection conn)
handleLogin
in interface SessionManagerHandler
userName
- conn
- public void handleLogout(String userName, XMPPResourceConnection conn)
handleLogout
in interface SessionManagerHandler
userName
- conn
- public void handlePresenceSet(XMPPResourceConnection conn)
handlePresenceSet
in interface SessionManagerHandler
conn
- public void handleResourceBind(XMPPResourceConnection conn)
handleResourceBind
in interface SessionManagerHandler
conn
- public boolean handlesLocalDomains()
handlesLocalDomains
in interface VHostListener
handlesLocalDomains
in class BasicComponent
public boolean hasCompleteJidsInfo()
hasCompleteJidsInfo
in interface OnlineJidsReporter
public void initBindings(javax.script.Bindings binds)
initBindings
in class BasicComponent
binds
- public boolean isLocalDomain(String domain, boolean includeComponents)
isLocalDomain
in interface SessionManagerHandler
domain
- includeComponents
-
public void processPacket(Packet packet)
processPacket
in class AbstractMessageReceiver
packet
- public int processingThreads()
processingThreads
in class AbstractMessageReceiver
public void setName(String name)
setName
in interface ServerComponent
setName
in class AbstractMessageReceiver
name
- public void setProperties(Map<String,Object> props)
setProperties
in interface Configurable
setProperties
in class AbstractMessageReceiver
props
- public boolean skipPrivacy()
protected boolean addOutPacket(Packet packet)
addOutPacket
in class AbstractMessageReceiver
protected void addOutPackets(Packet packet, XMPPResourceConnection conn, 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, String domain) throws tigase.util.TigaseStringprepException
tigase.util.TigaseStringprepException
protected boolean delTrusted(tigase.xmpp.JID jid)
protected boolean fastAddOutPacket(Packet packet)
protected Integer getMaxQueueSize(int def)
getMaxQueueSize
in class AbstractMessageReceiver
protected 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(String jid)
protected XMPPResourceConnection loginUserSession(tigase.xmpp.JID conn_id, String domain, tigase.xmpp.BareJID user_id, String resource, ConnectionStatus conn_st, 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 |