📄 externalcomponentmanager.html
字号:
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/component/ExternalComponentManager.html#hasConfiguration(java.lang.String)">hasConfiguration</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> subdomain)</CODE><BR> Returns true if there is a configuration for the specified subdomain.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/component/ExternalComponentManager.html#isServiceEnabled()">isServiceEnabled</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/component/ExternalComponentManager.html#removeListener(org.jivesoftware.openfire.component.ExternalComponentManagerListener)">removeListener</A></B>(<A HREF="../../../../org/jivesoftware/openfire/component/ExternalComponentManagerListener.html" title="interface in org.jivesoftware.openfire.component">ExternalComponentManagerListener</A> listener)</CODE><BR> Unregisters a listener to receive events.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/component/ExternalComponentManager.html#setDefaultSecret(java.lang.String)">setDefaultSecret</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> defaultSecret)</CODE><BR> Sets the default secret key to use for those external components that don't have an individual configuration.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/component/ExternalComponentManager.html#setPermissionPolicy(org.jivesoftware.openfire.component.ExternalComponentManager.PermissionPolicy)">setPermissionPolicy</A></B>(<A HREF="../../../../org/jivesoftware/openfire/component/ExternalComponentManager.PermissionPolicy.html" title="enum in org.jivesoftware.openfire.component">ExternalComponentManager.PermissionPolicy</A> policy)</CODE><BR> Sets the permission policy being used for new XMPP entities that are trying to connect to the server.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/component/ExternalComponentManager.html#setPermissionPolicy(java.lang.String)">setPermissionPolicy</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> policy)</CODE><BR> Sets the permission policy being used for new XMPP entities that are trying to connect to the server.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/component/ExternalComponentManager.html#setServiceEnabled(boolean)">setServiceEnabled</A></B>(boolean enabled)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/component/ExternalComponentManager.html#setServicePort(int)">setServicePort</A></B>(int port)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jivesoftware/openfire/component/ExternalComponentManager.html#updateComponentSecret(java.lang.String, java.lang.String)">updateComponentSecret</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> subdomain, <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> secret)</CODE><BR> </TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <P><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_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>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="ExternalComponentManager()"><!-- --></A><H3>ExternalComponentManager</H3><PRE>public <B>ExternalComponentManager</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="setServiceEnabled(boolean)"><!-- --></A><H3>setServiceEnabled</H3><PRE>public static void <B>setServiceEnabled</B>(boolean enabled) throws <A HREF="../../../../org/jivesoftware/util/ModificationNotAllowedException.html" title="class in org.jivesoftware.util">ModificationNotAllowedException</A></PRE><DL><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/jivesoftware/util/ModificationNotAllowedException.html" title="class in org.jivesoftware.util">ModificationNotAllowedException</A></CODE></DL></DD></DL><HR><A NAME="isServiceEnabled()"><!-- --></A><H3>isServiceEnabled</H3><PRE>public static boolean <B>isServiceEnabled</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="setServicePort(int)"><!-- --></A><H3>setServicePort</H3><PRE>public static void <B>setServicePort</B>(int port) throws <A HREF="../../../../org/jivesoftware/util/ModificationNotAllowedException.html" title="class in org.jivesoftware.util">ModificationNotAllowedException</A></PRE><DL><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/jivesoftware/util/ModificationNotAllowedException.html" title="class in org.jivesoftware.util">ModificationNotAllowedException</A></CODE></DL></DD></DL><HR><A NAME="getServicePort()"><!-- --></A><H3>getServicePort</H3><PRE>public static int <B>getServicePort</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="allowAccess(org.jivesoftware.openfire.component.ExternalComponentConfiguration)"><!-- --></A><H3>allowAccess</H3><PRE>public static void <B>allowAccess</B>(<A HREF="../../../../org/jivesoftware/openfire/component/ExternalComponentConfiguration.html" title="class in org.jivesoftware.openfire.component">ExternalComponentConfiguration</A> configuration) throws <A HREF="../../../../org/jivesoftware/util/ModificationNotAllowedException.html" title="class in org.jivesoftware.util">ModificationNotAllowedException</A></PRE><DL><DD>Allows an external component 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 external component.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/jivesoftware/util/ModificationNotAllowedException.html" title="class in org.jivesoftware.util">ModificationNotAllowedException</A></CODE> - if the operation was denied.</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> subdomain) throws <A HREF="../../../../org/jivesoftware/util/ModificationNotAllowedException.html" title="class in org.jivesoftware.util">ModificationNotAllowedException</A></PRE><DL><DD>Blocks an external component from connecting to the local server. If the component 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>subdomain</CODE> - the subdomain of the external component that is not allowed to connect.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/jivesoftware/util/ModificationNotAllowedException.html" title="class in org.jivesoftware.util">ModificationNotAllowedException</A></CODE> - if the operation was denied.</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> subdomain)</PRE><DL><DD>Returns true if the external component with the specified subdomain can connect to the local server.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>subdomain</CODE> - the subdomain of the external component.<DT><B>Returns:</B><DD>true if the external component with the specified subdomain can connect to the local server.</DL></DD></DL><HR><A NAME="hasConfiguration(java.lang.String)"><!-- --></A><H3>hasConfiguration</H3><PRE>public static boolean <B>hasConfiguration</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> subdomain)</PRE><DL><DD>Returns true if there is a configuration for the specified subdomain. This checking can be used as an indirect way of checking that the specified subdomain belongs to an external component.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>subdomain</CODE> - the subdomain of the external component.<DT><B>Returns:</B><DD>true if there is a configuration for the specified subdomain.</DL></DD></DL><HR><A NAME="getAllowedComponents()"><!-- --></A><H3>getAllowedComponents</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/component/ExternalComponentConfiguration.html" title="class in org.jivesoftware.openfire.component">ExternalComponentConfiguration</A>> <B>getAllowedComponents</B>()</PRE><DL><DD>Returns the list of registered external components that are allowed to connect to 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 shared secret specific for each component.<P><DD><DL><DT><B>Returns:</B><DD>the configuration of the registered external components.</DL></DD></DL><HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -