📄 sessionmanager.html
字号:
<CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/openfire/SessionManager.html#broadcastPresenceToOtherResources(org.xmpp.packet.JID, org.xmpp.packet.Presence)">broadcastPresenceToOtherResources</A></B>(<A HREF="../../../org/xmpp/packet/JID.html" title="class in org.xmpp.packet">JID</A> originatingResource, <A HREF="../../../org/xmpp/packet/Presence.html" title="class in org.xmpp.packet">Presence</A> presence)</CODE><BR> Broadcasts presence updates from the originating user's resource to any of the user's existing available resources (if any).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/openfire/SessionManager.html#changePriority(org.jivesoftware.openfire.session.LocalClientSession, int)">changePriority</A></B>(<A HREF="../../../org/jivesoftware/openfire/session/LocalClientSession.html" title="class in org.jivesoftware.openfire.session">LocalClientSession</A> session, int oldPriority)</CODE><BR> Change the priority of a session, that was already available, associated with the sender.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/jivesoftware/openfire/http/HttpSession.html" title="class in org.jivesoftware.openfire.http">HttpSession</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/openfire/SessionManager.html#createClientHttpSession(long, java.net.InetAddress, org.jivesoftware.openfire.StreamID, org.jivesoftware.openfire.http.HttpConnection)">createClientHttpSession</A></B>(long rid, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/net/InetAddress.html" title="class or interface in java.net">InetAddress</A> address, <A HREF="../../../org/jivesoftware/openfire/StreamID.html" title="interface in org.jivesoftware.openfire">StreamID</A> id, <A HREF="../../../org/jivesoftware/openfire/http/HttpConnection.html" title="class in org.jivesoftware.openfire.http">HttpConnection</A> connection)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/jivesoftware/openfire/session/LocalClientSession.html" title="class in org.jivesoftware.openfire.session">LocalClientSession</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/openfire/SessionManager.html#createClientSession(org.jivesoftware.openfire.Connection)">createClientSession</A></B>(<A HREF="../../../org/jivesoftware/openfire/Connection.html" title="interface in org.jivesoftware.openfire">Connection</A> conn)</CODE><BR> Creates a new <tt>ClientSession</tt>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/jivesoftware/openfire/session/LocalClientSession.html" title="class in org.jivesoftware.openfire.session">LocalClientSession</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/openfire/SessionManager.html#createClientSession(org.jivesoftware.openfire.Connection, org.jivesoftware.openfire.StreamID)">createClientSession</A></B>(<A HREF="../../../org/jivesoftware/openfire/Connection.html" title="interface in org.jivesoftware.openfire">Connection</A> conn, <A HREF="../../../org/jivesoftware/openfire/StreamID.html" title="interface in org.jivesoftware.openfire">StreamID</A> id)</CODE><BR> Creates a new <tt>ClientSession</tt> with the specified streamID.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/jivesoftware/openfire/session/LocalComponentSession.html" title="class in org.jivesoftware.openfire.session">LocalComponentSession</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/openfire/SessionManager.html#createComponentSession(org.xmpp.packet.JID, org.jivesoftware.openfire.Connection)">createComponentSession</A></B>(<A HREF="../../../org/xmpp/packet/JID.html" title="class in org.xmpp.packet">JID</A> address, <A HREF="../../../org/jivesoftware/openfire/Connection.html" title="interface in org.jivesoftware.openfire">Connection</A> conn)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/jivesoftware/openfire/session/LocalIncomingServerSession.html" title="class in org.jivesoftware.openfire.session">LocalIncomingServerSession</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/openfire/SessionManager.html#createIncomingServerSession(org.jivesoftware.openfire.Connection, org.jivesoftware.openfire.StreamID)">createIncomingServerSession</A></B>(<A HREF="../../../org/jivesoftware/openfire/Connection.html" title="interface in org.jivesoftware.openfire">Connection</A> conn, <A HREF="../../../org/jivesoftware/openfire/StreamID.html" title="interface in org.jivesoftware.openfire">StreamID</A> id)</CODE><BR> Creates a session for a remote server.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/jivesoftware/openfire/session/LocalConnectionMultiplexerSession.html" title="class in org.jivesoftware.openfire.session">LocalConnectionMultiplexerSession</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/openfire/SessionManager.html#createMultiplexerSession(org.jivesoftware.openfire.Connection, org.xmpp.packet.JID)">createMultiplexerSession</A></B>(<A HREF="../../../org/jivesoftware/openfire/Connection.html" title="interface in org.jivesoftware.openfire">Connection</A> conn, <A HREF="../../../org/xmpp/packet/JID.html" title="class in org.xmpp.packet">JID</A> address)</CODE><BR> Creates a new <tt>ConnectionMultiplexerSession</tt>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/openfire/SessionManager.html#getActiveSessionCount(java.lang.String)">getActiveSessionCount</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> username)</CODE><BR> Returns the number of sessions for a user that are available.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/jivesoftware/openfire/session/ComponentSession.html" title="interface in org.jivesoftware.openfire.session">ComponentSession</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/openfire/SessionManager.html#getComponentSession(java.lang.String)">getComponentSession</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> domain)</CODE><BR> Returns the session of the component whose domain matches the specified domain.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A><<A HREF="../../../org/jivesoftware/openfire/session/ComponentSession.html" title="interface in org.jivesoftware.openfire.session">ComponentSession</A>></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/openfire/SessionManager.html#getComponentSessions()">getComponentSessions</A></B>()</CODE><BR> Returns a collection with the established sessions from external components.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/openfire/SessionManager.html#getConflictKickLimit()">getConflictKickLimit</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/jivesoftware/openfire/session/ConnectionMultiplexerSession.html" title="interface in org.jivesoftware.openfire.session">ConnectionMultiplexerSession</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/openfire/SessionManager.html#getConnectionMultiplexerSession(org.xmpp.packet.JID)">getConnectionMultiplexerSession</A></B>(<A HREF="../../../org/xmpp/packet/JID.html" title="class in org.xmpp.packet">JID</A> address)</CODE><BR> Returns the session originated from the specified address or <tt>null</tt> if none was found.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A><<A HREF="../../../org/jivesoftware/openfire/session/ConnectionMultiplexerSession.html" title="interface in org.jivesoftware.openfire.session">ConnectionMultiplexerSession</A>></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/openfire/SessionManager.html#getConnectionMultiplexerSessions()">getConnectionMultiplexerSessions</A></B>()</CODE><BR> Returns all sessions originated from connection managers.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A><<A HREF="../../../org/jivesoftware/openfire/session/ConnectionMultiplexerSession.html" title="interface in org.jivesoftware.openfire.session">ConnectionMultiplexerSession</A>></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/openfire/SessionManager.html#getConnectionMultiplexerSessions(java.lang.String)">getConnectionMultiplexerSessions</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> domain)</CODE><BR> Returns a collection with all the sessions originated from the connection manager whose domain matches the specified domain.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/openfire/SessionManager.html#getConnectionsCount(boolean)">getConnectionsCount</A></B>(boolean onlyLocal)</CODE><BR> Returns number of client sessions that are connected to the server.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A><<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/openfire/SessionManager.html#getIncomingServers()">getIncomingServers</A></B>()</CODE><BR> Returns a collection with the hostnames of the remote servers that currently have an incoming server connection to this server.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/jivesoftware/openfire/session/LocalIncomingServerSession.html" title="class in org.jivesoftware.openfire.session">LocalIncomingServerSession</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/openfire/SessionManager.html#getIncomingServerSession(java.lang.String)">getIncomingServerSession</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> streamID)</CODE><BR> Returns the incoming server session hosted by this JVM that matches the specified stream ID.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html" title="class or interface in java.util">List</A><<A HREF="../../../org/jivesoftware/openfire/session/IncomingServerSession.html" title="interface in org.jivesoftware.openfire.session">IncomingServerSession</A>></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/openfire/SessionManager.html#getIncomingServerSessions(java.lang.String)">getIncomingServerSessions</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> hostname)</CODE><BR> Returns the list of sessions that were originated by a remote server.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/openfire/SessionManager.html#getIncomingServerSessionsCount(boolean)">getIncomingServerSessionsCount</A></B>(boolean onlyLocal)</CODE><BR> Returns number of sessions coming from remote servers.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../org/jivesoftware/openfire/SessionManager.html" title="class in org.jivesoftware.openfire">SessionManager</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/openfire/SessionManager.html#getInstance()">getInstance</A></B>()</CODE><BR> Returns the instance of <CODE>SessionManagerImpl</CODE> being used by the XMPPServer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A><<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/openfire/SessionManager.html#getOutgoingServers()">getOutgoingServers</A></B>()</CODE><BR> Returns a collection with the hostnames of the remote servers that currently may receive packets sent from this server.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/jivesoftware/openfire/session/OutgoingServerSession.html" title="interface in org.jivesoftware.openfire.session">OutgoingServerSession</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/openfire/SessionManager.html#getOutgoingServerSession(java.lang.String)">getOutgoingServerSession</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> hostname)</CODE><BR> Returns a session that was originated from this server to a remote server.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A><<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/openfire/SessionManager.html#getPreAuthenticatedKeys()">getPreAuthenticatedKeys</A></B>()</CODE><BR> Returns the temporary keys used by the sessions that has not been authenticated yet.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jivesoftware/openfire/SessionManager.html#getServerSessionIdleTime()">getServerSessionIdleTime</A></B>()</CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -