|
||||||||||
| 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
Field description |
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, maxInQueueSize, maxOutQueueSize, MINUTE, OUTGOING_FILTERS_PROP_KEY, OUTGOING_FILTERS_PROP_VAL, SCHEDULER_THREADS_PROP_KEY, SECOND |
| Fields inherited from class tigase.server.BasicComponent |
|---|
admins, ALL_PROP_KEY, COMMAND_PROP_NODE, scriptCommands, 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 | |
|---|---|
boolean |
addOutPacket(Packet packet)
Method description |
protected void |
addOutPackets(Packet packet,
XMPPResourceConnection conn,
Queue<Packet> results)
Method description |
XMPPImplIfc |
addPlugin(String plug_id,
Integer conc)
Method description |
protected boolean |
addTrusted(tigase.xmpp.JID jid)
Method description |
protected void |
closeConnection(tigase.xmpp.JID connectionId,
String userId,
boolean closeOnly)
Method description |
protected void |
closeSession(XMPPResourceConnection conn,
boolean closeOnly)
Method description |
boolean |
containsJid(tigase.xmpp.BareJID jid)
Method description |
protected XMPPResourceConnection |
createUserSession(tigase.xmpp.JID conn_id,
String domain)
Method description |
protected boolean |
delTrusted(tigase.xmpp.JID jid)
Method description |
protected boolean |
fastAddOutPacket(Packet packet)
Method description |
tigase.xmpp.JID[] |
getConnectionIdsForJid(tigase.xmpp.BareJID 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)
Method description |
XMPPResourceConnection |
getResourceConnection(tigase.xmpp.JID jid)
Method description |
protected XMPPSession |
getSession(tigase.xmpp.BareJID jid)
Method description |
void |
getStatistics(StatisticsList list)
Method description |
protected XMPPResourceConnection |
getXMPPResourceConnection(tigase.xmpp.JID connId)
Method description |
protected XMPPResourceConnection |
getXMPPResourceConnection(Packet p)
Method description |
void |
handleLogin(tigase.xmpp.BareJID userId,
XMPPResourceConnection conn)
Method description |
void |
handleLogout(tigase.xmpp.BareJID userId,
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(Bindings binds)
Method description |
protected boolean |
isBrokenPacket(Packet p)
Method description |
boolean |
isLocalDomain(String domain,
boolean includeComponents)
Method description |
protected boolean |
isTrusted(tigase.xmpp.JID jid)
Method description |
protected boolean |
isTrusted(String jid)
Method description |
protected XMPPResourceConnection |
loginUserSession(tigase.xmpp.JID conn_id,
String domain,
tigase.xmpp.BareJID user_id,
String resource,
String xmpp_sessionId)
Method description |
protected boolean |
processAdminsOrDomains(Packet packet)
Method description |
protected boolean |
processCommand(Packet pc)
Method description |
int |
processingInThreads()
Method description |
int |
processingOutThreads()
Method description |
void |
processPacket(Packet packet)
Method description |
protected void |
processPacket(Packet packet,
XMPPResourceConnection conn)
Method description |
protected void |
registerNewSession(tigase.xmpp.BareJID userId,
XMPPResourceConnection conn)
Method description |
void |
removePlugin(String plug_id)
Method description |
protected void |
sendToAdmins(Packet packet)
Method description |
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, addTimerTask, addTimerTask, clearRegexRoutings, everyHour, everyMinute, everySecond, getRegexRoutings, hashCodeForPacket, isInRegexRoutings, newPacketId, processingThreads, processOutPacket, processPacket, release, removeRegexRouting, schedulerThreads, 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, isInitializationComplete, 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 addOutPacket(Packet packet)
addOutPacket in class AbstractMessageReceiverpacket -
public XMPPImplIfc addPlugin(String plug_id,
Integer conc)
throws ClassNotFoundException,
InstantiationException,
IllegalAccessException
plug_id - conc -
ClassNotFoundException
IllegalAccessException
InstantiationExceptionpublic boolean containsJid(tigase.xmpp.BareJID jid)
containsJid in interface OnlineJidsReporterjid -
public void handleLogin(tigase.xmpp.BareJID userId,
XMPPResourceConnection conn)
handleLogin in interface SessionManagerHandleruserId - conn -
public void handleLogout(tigase.xmpp.BareJID userId,
XMPPResourceConnection conn)
handleLogout in interface SessionManagerHandleruserId - 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 void initBindings(Bindings binds)
initBindings in class BasicComponentbinds - public int processingInThreads()
processingInThreads in class AbstractMessageReceiverpublic int processingOutThreads()
processingOutThreads in class AbstractMessageReceiverpublic void processPacket(Packet packet)
processPacket in class AbstractMessageReceiverpacket - public void removePlugin(String plug_id)
plug_id - public boolean skipPrivacy()
public tigase.xmpp.JID[] getConnectionIdsForJid(tigase.xmpp.BareJID jid)
getConnectionIdsForJid in interface OnlineJidsReporterjid -
public Map<String,Object> getDefaults(Map<String,Object> params)
getDefaults in interface ConfigurablegetDefaults in class AbstractMessageReceiverparams -
public String getDiscoCategoryType()
getDiscoCategoryType in class BasicComponentpublic String getDiscoDescription()
getDiscoDescription in class BasicComponentpublic List<tigase.xml.Element> getDiscoFeatures(tigase.xmpp.JID from)
getDiscoFeatures in interface XMPPServicegetDiscoFeatures in class BasicComponentfrom -
public tigase.xml.Element getDiscoInfo(String node,
tigase.xmpp.JID jid,
tigase.xmpp.JID from)
getDiscoInfo in interface XMPPServicegetDiscoInfo in class BasicComponentnode - jid - from -
public XMPPResourceConnection getResourceConnection(tigase.xmpp.JID jid)
jid -
public void getStatistics(StatisticsList list)
getStatistics in interface StatisticsContainergetStatistics in class AbstractMessageReceiverlist - public boolean hasCompleteJidsInfo()
hasCompleteJidsInfo in interface OnlineJidsReporter
public boolean isLocalDomain(String domain,
boolean includeComponents)
isLocalDomain in interface SessionManagerHandlerdomain - includeComponents -
public void setName(String name)
setName in interface ServerComponentsetName in class AbstractMessageReceivername - public void setProperties(Map<String,Object> props)
setProperties in interface ConfigurablesetProperties in class AbstractMessageReceiverprops -
protected void addOutPackets(Packet packet,
XMPPResourceConnection conn,
Queue<Packet> results)
packet - conn - results - protected boolean addTrusted(tigase.xmpp.JID jid)
jid -
protected void closeConnection(tigase.xmpp.JID connectionId,
String userId,
boolean closeOnly)
connectionId - userId - closeOnly -
protected void closeSession(XMPPResourceConnection conn,
boolean closeOnly)
conn - closeOnly -
protected XMPPResourceConnection createUserSession(tigase.xmpp.JID conn_id,
String domain)
throws tigase.util.TigaseStringprepException
conn_id - domain -
tigase.util.TigaseStringprepExceptionprotected boolean delTrusted(tigase.xmpp.JID jid)
jid -
protected boolean fastAddOutPacket(Packet packet)
packet -
protected XMPPResourceConnection loginUserSession(tigase.xmpp.JID conn_id,
String domain,
tigase.xmpp.BareJID user_id,
String resource,
String xmpp_sessionId)
conn_id - domain - user_id - resource - xmpp_sessionId -
protected boolean processAdminsOrDomains(Packet packet)
packet -
protected boolean processCommand(Packet pc)
pc -
protected void processPacket(Packet packet,
XMPPResourceConnection conn)
packet - conn -
protected void registerNewSession(tigase.xmpp.BareJID userId,
XMPPResourceConnection conn)
userId - conn - protected void sendToAdmins(Packet packet)
packet - protected Integer getMaxQueueSize(int def)
getMaxQueueSize in class AbstractMessageReceiverdef -
protected XMPPSession getSession(tigase.xmpp.BareJID jid)
jid -
protected XMPPResourceConnection getXMPPResourceConnection(tigase.xmpp.JID connId)
connId -
protected XMPPResourceConnection getXMPPResourceConnection(Packet p)
p -
protected boolean isBrokenPacket(Packet p)
p -
protected boolean isTrusted(tigase.xmpp.JID jid)
jid -
protected boolean isTrusted(String jid)
jid -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||