📄 remoteservermanager.html
字号:
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="RemoteServerManager()"><!-- --></A><H3>RemoteServerManager</H3><PRE>public <B>RemoteServerManager</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="allowAccess(org.jivesoftware.openfire.server.RemoteServerConfiguration)"><!-- --></A><H3>allowAccess</H3><PRE>public static void <B>allowAccess</B>(<A HREF="../../../../org/jivesoftware/openfire/server/RemoteServerConfiguration.html" title="class in org.jivesoftware.openfire.server">RemoteServerConfiguration</A> configuration)</PRE><DL><DD>Allows a remote server to connect to the local server with the specified configuration.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>configuration</CODE> - the configuration for the remote server.</DL></DD></DL><HR><A NAME="blockAccess(java.lang.String)"><!-- --></A><H3>blockAccess</H3><PRE>public static void <B>blockAccess</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)</PRE><DL><DD>Blocks a remote server from connecting to the local server. If the remote server was connected when the permission was revoked then the connection of the entity will be closed.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>domain</CODE> - the domain of the remote server that is not allowed to connect.</DL></DD></DL><HR><A NAME="canAccess(java.lang.String)"><!-- --></A><H3>canAccess</H3><PRE>public static boolean <B>canAccess</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)</PRE><DL><DD>Returns true if the remote server with the specified domain can connect to the local server.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>domain</CODE> - the domain of the remote server.<DT><B>Returns:</B><DD>true if the remote server with the specified domain can connect to the local server.</DL></DD></DL><HR><A NAME="getAllowedServers()"><!-- --></A><H3>getAllowedServers</H3><PRE>public static <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/server/RemoteServerConfiguration.html" title="class in org.jivesoftware.openfire.server">RemoteServerConfiguration</A>> <B>getAllowedServers</B>()</PRE><DL><DD>Returns the list of registered remote servers that are allowed to connect to/from this server when using a whitelist policy. However, when using a blacklist policy (i.e. anyone may connect to the server) the returned list of configurations will be used for obtaining the specific connection configuration for each remote server.<P><DD><DL><DT><B>Returns:</B><DD>the configuration of the registered external components.</DL></DD></DL><HR><A NAME="getBlockedServers()"><!-- --></A><H3>getBlockedServers</H3><PRE>public static <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/server/RemoteServerConfiguration.html" title="class in org.jivesoftware.openfire.server">RemoteServerConfiguration</A>> <B>getBlockedServers</B>()</PRE><DL><DD>Returns the list of remote servers that are NOT allowed to connect to/from this server.<P><DD><DL><DT><B>Returns:</B><DD>the configuration of the blocked external components.</DL></DD></DL><HR><A NAME="getSocketTimeout()"><!-- --></A><H3>getSocketTimeout</H3><PRE>public static int <B>getSocketTimeout</B>()</PRE><DL><DD>Returns the number of milliseconds to wait to connect to a remote server or read data from a remote server. Default timeout value is 20 seconds. Configure the <tt>xmpp.server.read.timeout</tt> global property to override the default value.<P><DD><DL><DT><B>Returns:</B><DD>the number of milliseconds to wait to connect to a remote server or read data from a remote server.</DL></DD></DL><HR><A NAME="deleteConfiguration(java.lang.String)"><!-- --></A><H3>deleteConfiguration</H3><PRE>public static void <B>deleteConfiguration</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)</PRE><DL><DD>Removes any existing defined permission and configuration for the specified remote server.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>domain</CODE> - the domain of the remote server.</DL></DD></DL><HR><A NAME="getConfiguration(java.lang.String)"><!-- --></A><H3>getConfiguration</H3><PRE>public static <A HREF="../../../../org/jivesoftware/openfire/server/RemoteServerConfiguration.html" title="class in org.jivesoftware.openfire.server">RemoteServerConfiguration</A> <B>getConfiguration</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)</PRE><DL><DD>Returns the configuration for a remote server or <tt>null</tt> if none was found.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>domain</CODE> - the domain of the remote server.<DT><B>Returns:</B><DD>the configuration for a remote server or <tt>null</tt> if none was found.</DL></DD></DL><HR><A NAME="getPortForServer(java.lang.String)"><!-- --></A><H3>getPortForServer</H3><PRE>public static int <B>getPortForServer</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)</PRE><DL><DD>Returns the remote port to connect for the specified remote server. If no port was defined then use the default port (e.g. 5269).<P><DD><DL><DT><B>Parameters:</B><DD><CODE>domain</CODE> - the domain of the remote server to get the remote port to connect to.<DT><B>Returns:</B><DD>the remote port to connect for the specified remote server.</DL></DD></DL><HR><A NAME="getPermissionPolicy()"><!-- --></A><H3>getPermissionPolicy</H3><PRE>public static <A HREF="../../../../org/jivesoftware/openfire/server/RemoteServerManager.PermissionPolicy.html" title="enum in org.jivesoftware.openfire.server">RemoteServerManager.PermissionPolicy</A> <B>getPermissionPolicy</B>()</PRE><DL><DD>Returns the permission policy being used for new XMPP entities that are trying to connect to the server. There are two types of policies: 1) blacklist: where any entity is allowed to connect to the server except for those listed in the black list and 2) whitelist: where only the entities listed in the white list are allowed to connect to the server.<P><DD><DL><DT><B>Returns:</B><DD>the permission policy being used for new XMPP entities that are trying to connect to the server.</DL></DD></DL><HR><A NAME="setPermissionPolicy(org.jivesoftware.openfire.server.RemoteServerManager.PermissionPolicy)"><!-- --></A><H3>setPermissionPolicy</H3><PRE>public static void <B>setPermissionPolicy</B>(<A HREF="../../../../org/jivesoftware/openfire/server/RemoteServerManager.PermissionPolicy.html" title="enum in org.jivesoftware.openfire.server">RemoteServerManager.PermissionPolicy</A> policy)</PRE><DL><DD>Sets the permission policy being used for new XMPP entities that are trying to connect to the server. There are two types of policies: 1) blacklist: where any entity is allowed to connect to the server except for those listed in the black list and 2) whitelist: where only the entities listed in the white list are allowed to connect to the server.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>policy</CODE> - the new PermissionPolicy to use.</DL></DD></DL><HR><A NAME="setPermissionPolicy(java.lang.String)"><!-- --></A><H3>setPermissionPolicy</H3><PRE>public static void <B>setPermissionPolicy</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> policy)</PRE><DL><DD>Sets the permission policy being used for new XMPP entities that are trying to connect to the server. There are two types of policies: 1) blacklist: where any entity is allowed to connect to the server except for those listed in the black list and 2) whitelist: where only the entities listed in the white list are allowed to connect to the server.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>policy</CODE> - the new policy to use.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Openfire 3.6.0a Javadoc</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../org/jivesoftware/openfire/server/RemoteServerConfiguration.Permission.html" title="enum in org.jivesoftware.openfire.server"><B>PREV CLASS</B></A> <A HREF="../../../../org/jivesoftware/openfire/server/RemoteServerManager.PermissionPolicy.html" title="enum in org.jivesoftware.openfire.server"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?org/jivesoftware/openfire/server/RemoteServerManager.html" target="_top"><B>FRAMES</B></A> <A HREF="RemoteServerManager.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><i>Copyright © 2003-2008 Jive Software.</i></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -