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

📄 context.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="INITIAL_CONTEXT_FACTORY"><!-- --></A><H3>INITIAL_CONTEXT_FACTORY</H3><PRE>public static final <A HREF="../../java/lang/String.html">String</A> <B>INITIAL_CONTEXT_FACTORY</B></PRE><DL><DD>Constant that holds the name of the environment property for specifying the initial context factory to use. The value of the property should be the fully qualified class name of the factory class that will create an initial context. This property may be specified in the environment parameter passed to the initial context constructor, an applet parameter, a system property, or an application resource file. If it is not specified in any of these sources, <tt>NoInitialContextException</tt> is thrown when an initial context is required to complete an operation. <p> The value of this constant is "java.naming.factory.initial".<DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/naming/InitialContext.html"><CODE>InitialContext</CODE></A>, <A HREF="../../javax/naming/directory/InitialDirContext.html"><CODE>InitialDirContext</CODE></A>, <A HREF="../../javax/naming/spi/NamingManager.html#getInitialContext(java.util.Hashtable)"><CODE>NamingManager.getInitialContext(java.util.Hashtable)</CODE></A>, <A HREF="../../javax/naming/spi/InitialContextFactory.html"><CODE>InitialContextFactory</CODE></A>, <A HREF="../../javax/naming/NoInitialContextException.html"><CODE>NoInitialContextException</CODE></A>, <A HREF="../../javax/naming/Context.html#addToEnvironment(java.lang.String, java.lang.Object)"><CODE>addToEnvironment(String, Object)</CODE></A>, <A HREF="../../javax/naming/Context.html#removeFromEnvironment(java.lang.String)"><CODE>removeFromEnvironment(String)</CODE></A>, <A HREF="../../javax/naming/Context.html#APPLET"><CODE>APPLET</CODE></A></DL></DD></DL><HR><A NAME="OBJECT_FACTORIES"><!-- --></A><H3>OBJECT_FACTORIES</H3><PRE>public static final <A HREF="../../java/lang/String.html">String</A> <B>OBJECT_FACTORIES</B></PRE><DL><DD>Constant that holds the name of the environment property for specifying the list of object factories to use. The value of the property should be a colon-separated list of the fully qualified class names of factory classes that will create an object given information about the object. This property may be specified in the environment, an applet parameter, a system property, or one or more resource files. <p> The value of this constant is "java.naming.factory.object".<DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/naming/spi/NamingManager.html#getObjectInstance(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable)"><CODE>NamingManager.getObjectInstance(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable)</CODE></A>, <A HREF="../../javax/naming/spi/ObjectFactory.html"><CODE>ObjectFactory</CODE></A>, <A HREF="../../javax/naming/Context.html#addToEnvironment(java.lang.String, java.lang.Object)"><CODE>addToEnvironment(String, Object)</CODE></A>, <A HREF="../../javax/naming/Context.html#removeFromEnvironment(java.lang.String)"><CODE>removeFromEnvironment(String)</CODE></A>, <A HREF="../../javax/naming/Context.html#APPLET"><CODE>APPLET</CODE></A></DL></DD></DL><HR><A NAME="STATE_FACTORIES"><!-- --></A><H3>STATE_FACTORIES</H3><PRE>public static final <A HREF="../../java/lang/String.html">String</A> <B>STATE_FACTORIES</B></PRE><DL><DD>Constant that holds the name of the environment property for specifying the list of state factories to use. The value of the property should be a colon-separated list of the fully qualified class names of state factory classes that will be used to get an object's state given the object itself. This property may be specified in the environment, an applet parameter, a system property, or one or more resource files. <p> The value of this constant is "java.naming.factory.state".<DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/naming/spi/NamingManager.html#getStateToBind(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable)"><CODE>NamingManager.getStateToBind(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable)</CODE></A>, <A HREF="../../javax/naming/spi/StateFactory.html"><CODE>StateFactory</CODE></A>, <A HREF="../../javax/naming/Context.html#addToEnvironment(java.lang.String, java.lang.Object)"><CODE>addToEnvironment(String, Object)</CODE></A>, <A HREF="../../javax/naming/Context.html#removeFromEnvironment(java.lang.String)"><CODE>removeFromEnvironment(String)</CODE></A>, <A HREF="../../javax/naming/Context.html#APPLET"><CODE>APPLET</CODE></A><DT><B>Since: </B><DD>1.3</DD></DL></DD></DL><HR><A NAME="URL_PKG_PREFIXES"><!-- --></A><H3>URL_PKG_PREFIXES</H3><PRE>public static final <A HREF="../../java/lang/String.html">String</A> <B>URL_PKG_PREFIXES</B></PRE><DL><DD>Constant that holds the name of the environment property for specifying the list of package prefixes to use when loading in URL context factories. The value of the property should be a colon-separated list of package prefixes for the class name of the factory class that will create a URL context factory. This property may be specified in the environment, an applet parameter, a system property, or one or more resource files. The prefix <tt>com.sun.jndi.url</tt> is always appended to the possibly empty list of package prefixes. <p> The value of this constant is "java.naming.factory.url.pkgs".<DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/naming/spi/NamingManager.html#getObjectInstance(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable)"><CODE>NamingManager.getObjectInstance(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable)</CODE></A>, <A HREF="../../javax/naming/spi/NamingManager.html#getURLContext(java.lang.String, java.util.Hashtable)"><CODE>NamingManager.getURLContext(java.lang.String, java.util.Hashtable)</CODE></A>, <A HREF="../../javax/naming/spi/ObjectFactory.html"><CODE>ObjectFactory</CODE></A>, <A HREF="../../javax/naming/Context.html#addToEnvironment(java.lang.String, java.lang.Object)"><CODE>addToEnvironment(String, Object)</CODE></A>, <A HREF="../../javax/naming/Context.html#removeFromEnvironment(java.lang.String)"><CODE>removeFromEnvironment(String)</CODE></A>, <A HREF="../../javax/naming/Context.html#APPLET"><CODE>APPLET</CODE></A></DL></DD></DL><HR><A NAME="PROVIDER_URL"><!-- --></A><H3>PROVIDER_URL</H3><PRE>public static final <A HREF="../../java/lang/String.html">String</A> <B>PROVIDER_URL</B></PRE><DL><DD>Constant that holds the name of the environment property for specifying configuration information for the service provider to use. The value of the property should contain a URL string (e.g. "ldap://somehost:389"). This property may be specified in the environment, an applet parameter, a system property, or a resource file. If it is not specified in any of these sources, the default configuration is determined by the service provider. <p> The value of this constant is "java.naming.provider.url".<DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/naming/Context.html#addToEnvironment(java.lang.String, java.lang.Object)"><CODE>addToEnvironment(String, Object)</CODE></A>, <A HREF="../../javax/naming/Context.html#removeFromEnvironment(java.lang.String)"><CODE>removeFromEnvironment(String)</CODE></A>, <A HREF="../../javax/naming/Context.html#APPLET"><CODE>APPLET</CODE></A></DL></DD></DL><HR><A NAME="DNS_URL"><!-- --></A><H3>DNS_URL</H3><PRE>public static final <A HREF="../../java/lang/String.html">String</A> <B>DNS_URL</B></PRE><DL><DD>Constant that holds the name of the environment property for specifying the DNS host and domain names to use for the JNDI URL context (for example, "dns://somehost/wiz.com"). This property may be specified in the environment, an applet parameter, a system property, or a resource file. If it is not specified in any of these sources and the program attempts to use a JNDI URL containing a DNS name, a <tt>ConfigurationException</tt> will be thrown. <p> The value of this constant is "java.naming.dns.url".<DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/naming/Context.html#addToEnvironment(java.lang.String, java.lang.Object)"><CODE>addToEnvironment(String, Object)</CODE></A>, <A HREF="../../javax/naming/Context.html#removeFromEnvironment(java.lang.String)"><CODE>removeFromEnvironment(String)</CODE></A></DL></DD></DL><HR><A NAME="AUTHORITATIVE"><!-- --></A><H3>AUTHORITATIVE</H3><PRE>public static final <A HREF="../../java/lang/String.html">String</A> <B>AUTHORITATIVE</B></PRE><DL><DD>Constant that holds the name of the environment property for specifying the authoritativeness of the service requested. If the value of the property is the string "true", it means that the access is to the most authoritative source (i.e. bypass any cache or replicas). If the value is anything else, the source need not be (but may be) authoritative. If unspecified, the value defaults to "false". <p> The value of this constant is "java.naming.authoritative".<DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/naming/Context.html#addToEnvironment(java.lang.String, java.lang.Object)"><CODE>addToEnvironment(String, Object)</CODE></A>, <A HREF="../../javax/naming/Context.html#removeFromEnvironment(java.lang.String)"><CODE>removeFromEnvironment(String)</CODE></A></DL></DD></DL><HR><A NAME="BATCHSIZE"><!-- --></A><H3>BATCHSIZE</H3><PRE>public static final <A HREF="../../java/lang/String.html">String</A> <B>BATCHSIZE</B></PRE><DL><DD>Constant that holds the name of the environment property for specifying the batch size to use when returning data via the service's protocol. This is a hint to the provider to return the results of operations in batches of the specified size, so the provider can optimize its performance and usage of resources. The value of the property is the string representation of an integer. If unspecified, the batch size is determined by the service provider. <p> The value of this constant is "java.naming.batchsize".<DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/naming/Context.html#addToEnvironment(java.lang.String, java.lang.Object)"><CODE>addToEnvironment(String, Object)</CODE></A>, <A HREF="../../javax/naming/Context.html#removeFromEnvironment(java.lang.String)"><CODE>removeFromEnvironment(String)</CODE></A></DL></DD></DL><HR><A NAME="REFERRAL"><!-- --></A><H3>REFERRAL</H3><PRE>public static final <A HREF="../../java/lang/String.html">String</A> <B>REFERRAL</B></PRE><DL><DD>Constant that holds the name of the environment property for specifying how referrals encountered by the service provider are to be processed. The value of the property is one of the following strings: <dl> <dt>"follow" <dd>follow referrals automatically <dt>"ignore" <dd>ignore referrals <dt>"throw" <dd>throw <tt>ReferralException</tt> when a referral is encountered. </dl> If this property is not specified, the default is determined by the provider. <p> The value of this constant is "java.naming.referral".<DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/naming/Context.html#addToEnvironment(java.lang.String, java.lang.Object)"><CODE>addToEnvironment(String, Object)</CODE></A>, <A HREF="../../javax/naming/Context.html#removeFromEnvironment(java.lang.String)"><CODE>removeFromEnvironment(String)</CODE></A></DL></DD></DL><HR><A NAME="SECURITY_PROTOCOL"><!-- --></A><H3>SECURITY_PROTOCOL</H3><PRE>public static final <A HREF="../../java/lang/String.html">String</A> <B>SECURITY_PROTOCOL</B></PRE><DL><DD>Constant that holds the name of the environment property for specifying the security protocol to use. Its value is a string determined by the service provider (e.g. "ssl"). If this property is unspecified, the behaviour is determined by the service provider. <p> The value of this constant is "java.naming.security.protocol".<DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/naming/Context.html#addToEnvironment(java.lang.String, java.lang.Object)"><CODE>addToEnvironment(String, Object)</CODE></A>, <A HREF="../../javax/naming/Context.html#removeFromEnvironment(java.lang.String)"><CODE>removeFromEnvironment(String)</CODE></A></DL></DD></DL><HR><A NAME="SECURITY_AUTHENTICATION"><!-- --></A><H3>SECURITY_AUTHENTICATION</H3><PRE>public static final <A HREF="../../java/lang/String.html">String</A> <B>SECURITY_AUTHENTICATION</B></PRE><DL><DD>Constant that holds the name of the environment property for specifying the security level to use. Its value is one of the following strings: "none", "simple", "strong". If this property is unspecified,

⌨️ 快捷键说明

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