⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 connectionmanagerimpl.html

📁 开源软件openfire的API文件。进行openfire的二次开发所必需的工具。
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<PRE>public <B>ConnectionManagerImpl</B>()</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getPorts()"><!-- --></A><H3>getPorts</H3><PRE>public <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>&lt;<A HREF="../../../../org/jivesoftware/openfire/ServerPort.html" title="class in org.jivesoftware.openfire">ServerPort</A>&gt; <B>getPorts</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/jivesoftware/openfire/ConnectionManager.html#getPorts()">ConnectionManager</A></CODE></B></DD><DD>Returns an array of the ports managed by this connection manager.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jivesoftware/openfire/ConnectionManager.html#getPorts()">getPorts</A></CODE> in interface <CODE><A HREF="../../../../org/jivesoftware/openfire/ConnectionManager.html" title="interface in org.jivesoftware.openfire">ConnectionManager</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an iterator of the ports managed by this connection manager      (can be an empty but never null).</DL></DD></DL><HR><A NAME="createSocketReader(java.net.Socket, boolean, org.jivesoftware.openfire.ServerPort, boolean)"><!-- --></A><H3>createSocketReader</H3><PRE>public <A HREF="../../../../org/jivesoftware/openfire/net/SocketReader.html" title="class in org.jivesoftware.openfire.net">SocketReader</A> <B>createSocketReader</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A>&nbsp;sock,                                       boolean&nbsp;isSecure,                                       <A HREF="../../../../org/jivesoftware/openfire/ServerPort.html" title="class in org.jivesoftware.openfire">ServerPort</A>&nbsp;serverPort,                                       boolean&nbsp;useBlockingMode)                                throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/jivesoftware/openfire/ConnectionManager.html#createSocketReader(java.net.Socket, boolean, org.jivesoftware.openfire.ServerPort, boolean)">ConnectionManager</A></CODE></B></DD><DD>Creates a new socket reader for the new accepted socket to be managed by the connection manager.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jivesoftware/openfire/ConnectionManager.html#createSocketReader(java.net.Socket, boolean, org.jivesoftware.openfire.ServerPort, boolean)">createSocketReader</A></CODE> in interface <CODE><A HREF="../../../../org/jivesoftware/openfire/ConnectionManager.html" title="interface in org.jivesoftware.openfire">ConnectionManager</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>sock</CODE> - the new accepted socket by this manager.<DD><CODE>isSecure</CODE> - true if the connection is secure.<DD><CODE>serverPort</CODE> - holds information about the port on which the server is listening for        connections.<DD><CODE>useBlockingMode</CODE> - true means that the server will use a thread per connection.<DT><B>Returns:</B><DD>the created socket reader.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - when there is an error creating the socket reader.</DL></DD></DL><HR><A NAME="initialize(org.jivesoftware.openfire.XMPPServer)"><!-- --></A><H3>initialize</H3><PRE>public void <B>initialize</B>(<A HREF="../../../../org/jivesoftware/openfire/XMPPServer.html" title="class in org.jivesoftware.openfire">XMPPServer</A>&nbsp;server)</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../org/jivesoftware/openfire/container/BasicModule.html#initialize(org.jivesoftware.openfire.XMPPServer)">BasicModule</A></CODE></B></DD><DD><p>Initializes the basic module.</p> <p/> <p>Inheriting classes that choose to override this method MUST call this initialize() method before accessing BasicModule resources.</p><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jivesoftware/openfire/container/Module.html#initialize(org.jivesoftware.openfire.XMPPServer)">initialize</A></CODE> in interface <CODE><A HREF="../../../../org/jivesoftware/openfire/container/Module.html" title="interface in org.jivesoftware.openfire.container">Module</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/jivesoftware/openfire/container/BasicModule.html#initialize(org.jivesoftware.openfire.XMPPServer)">initialize</A></CODE> in class <CODE><A HREF="../../../../org/jivesoftware/openfire/container/BasicModule.html" title="class in org.jivesoftware.openfire.container">BasicModule</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>server</CODE> - the server hosting this module.</DL></DD></DL><HR><A NAME="enableClientListener(boolean)"><!-- --></A><H3>enableClientListener</H3><PRE>public void <B>enableClientListener</B>(boolean&nbsp;enabled)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/jivesoftware/openfire/ConnectionManager.html#enableClientListener(boolean)">ConnectionManager</A></CODE></B></DD><DD>Sets if the port listener for unsecured clients will be available or not. When disabled there won't be a port listener active. Therefore, new clients won't be able to connect to the server.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jivesoftware/openfire/ConnectionManager.html#enableClientListener(boolean)">enableClientListener</A></CODE> in interface <CODE><A HREF="../../../../org/jivesoftware/openfire/ConnectionManager.html" title="interface in org.jivesoftware.openfire">ConnectionManager</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>enabled</CODE> - true if new unsecured clients will be able to connect to the server.</DL></DD></DL><HR><A NAME="isClientListenerEnabled()"><!-- --></A><H3>isClientListenerEnabled</H3><PRE>public boolean <B>isClientListenerEnabled</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/jivesoftware/openfire/ConnectionManager.html#isClientListenerEnabled()">ConnectionManager</A></CODE></B></DD><DD>Returns true if the port listener for unsecured clients is available. When disabled there won't be a port listener active. Therefore, new clients won't be able to connect to the server.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jivesoftware/openfire/ConnectionManager.html#isClientListenerEnabled()">isClientListenerEnabled</A></CODE> in interface <CODE><A HREF="../../../../org/jivesoftware/openfire/ConnectionManager.html" title="interface in org.jivesoftware.openfire">ConnectionManager</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if the port listener for unsecured clients is available.</DL></DD></DL><HR><A NAME="enableClientSSLListener(boolean)"><!-- --></A><H3>enableClientSSLListener</H3><PRE>public void <B>enableClientSSLListener</B>(boolean&nbsp;enabled)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/jivesoftware/openfire/ConnectionManager.html#enableClientSSLListener(boolean)">ConnectionManager</A></CODE></B></DD><DD>Sets if the port listener for secured clients will be available or not. When disabled there won't be a port listener active. Therefore, new secured clients won't be able to connect to the server.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jivesoftware/openfire/ConnectionManager.html#enableClientSSLListener(boolean)">enableClientSSLListener</A></CODE> in interface <CODE><A HREF="../../../../org/jivesoftware/openfire/ConnectionManager.html" title="interface in org.jivesoftware.openfire">ConnectionManager</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>enabled</CODE> - true if new secured clients will be able to connect to the server.</DL></DD></DL><HR><A NAME="isClientSSLListenerEnabled()"><!-- --></A><H3>isClientSSLListenerEnabled</H3><PRE>public boolean <B>isClientSSLListenerEnabled</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/jivesoftware/openfire/ConnectionManager.html#isClientSSLListenerEnabled()">ConnectionManager</A></CODE></B></DD><DD>Returns true if the port listener for secured clients is available. When disabled there won't be a port listener active. Therefore, new secured clients won't be able to connect to the server.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jivesoftware/openfire/ConnectionManager.html#isClientSSLListenerEnabled()">isClientSSLListenerEnabled</A></CODE> in interface <CODE><A HREF="../../../../org/jivesoftware/openfire/ConnectionManager.html" title="interface in org.jivesoftware.openfire">ConnectionManager</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if the port listener for unsecured clients is available.</DL></DD></DL><HR><A NAME="enableComponentListener(boolean)"><!-- --></A><H3>enableComponentListener</H3><PRE>public void <B>enableComponentListener</B>(boolean&nbsp;enabled)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/jivesoftware/openfire/ConnectionManager.html#enableComponentListener(boolean)">ConnectionManager</A></CODE></B></DD><DD>Sets if the port listener for external components will be available or not. When disabled there won't be a port listener active. Therefore, new external components won't be able to connect to the server.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jivesoftware/openfire/ConnectionManager.html#enableComponentListener(boolean)">enableComponentListener</A></CODE> in interface <CODE><A HREF="../../../../org/jivesoftware/openfire/ConnectionManager.html" title="interface in org.jivesoftware.openfire">ConnectionManager</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>enabled</CODE> - true if new external components will be able to connect to the server.</DL></DD></DL><HR><A NAME="isComponentListenerEnabled()"><!-- --></A><H3>isComponentListenerEnabled</H3><PRE>public boolean <B>isComponentListenerEnabled</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/jivesoftware/openfire/ConnectionManager.html#isComponentListenerEnabled()">ConnectionManager</A></CODE></B></DD><DD>Returns true if the port listener for external components is available. When disabled there won't be a port listener active. Therefore, new external components won't be able to connect to the server.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jivesoftware/openfire/ConnectionManager.html#isComponentListenerEnabled()">isComponentListenerEnabled</A></CODE> in interface <CODE><A HREF="../../../../org/jivesoftware/openfire/ConnectionManager.html" title="interface in org.jivesoftware.openfire">ConnectionManager</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if the port listener for external components is available.</DL></DD></DL><HR><A NAME="enableServerListener(boolean)"><!-- --></A><H3>enableServerListener</H3><PRE>public void <B>enableServerListener</B>(boolean&nbsp;enabled)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/jivesoftware/openfire/ConnectionManager.html#enableServerListener(boolean)">ConnectionManager</A></CODE></B></DD><DD>Sets if the port listener for remote servers will be available or not. When disabled there won't be a port listener active. Therefore, new remote servers won't be able to connect to the server.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jivesoftware/openfire/ConnectionManager.html#enableServerListener(boolean)">enableServerListener</A></CODE> in interface <CODE><A HREF="../../../../org/jivesoftware/openfire/ConnectionManager.html" title="interface in org.jivesoftware.openfire">ConnectionManager</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>enabled</CODE> - true if new remote servers will be able to connect to the server.</DL></DD></DL><HR><A NAME="isServerListenerEnabled()"><!-- --></A><H3>isServerListenerEnabled</H3><PRE>public boolean <B>isServerListenerEnabled</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../org/jivesoftware/openfire/ConnectionManager.html#isServerListenerEnabled()">ConnectionManager</A></CODE></B></DD><DD>Returns true if the port listener for remote servers is available. When disabled there won't be a port listener active. Therefore, new remote servers won't be able to

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -