📄 initialcontext.html
字号:
public void <B>rebind</B>(<A HREF="../../javax/naming/Name.html">Name</A> name, <A HREF="../../java/lang/Object.html">Object</A> obj) throws <A HREF="../../javax/naming/NamingException.html">NamingException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../javax/naming/Context.html">Context</A></CODE></B></DD><DD>Binds a name to an object, overwriting any existing binding. All intermediate contexts and the target context (that named by all but terminal atomic component of the name) must already exist. <p> If the object is a <tt>DirContext</tt>, any existing attributes associated with the name are replaced with those of the object. Otherwise, any existing attributes associated with the name remain unchanged.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../javax/naming/Context.html#rebind(javax.naming.Name, java.lang.Object)">rebind</A></CODE> in interface <CODE><A HREF="../../javax/naming/Context.html">Context</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.naming.Context</CODE></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name to bind; may not be empty<DD><CODE>obj</CODE> - the object to bind; possibly null<DT><B>Throws:</B><DD><CODE><A HREF="../../javax/naming/directory/InvalidAttributesException.html">InvalidAttributesException</A></CODE> - if object did not supply all mandatory attributes<DD><CODE><A HREF="../../javax/naming/NamingException.html">NamingException</A></CODE> - if a naming exception is encountered<DT><B>See Also: </B><DD><A HREF="../../javax/naming/Context.html#rebind(java.lang.String, java.lang.Object)"><CODE>Context.rebind(String, Object)</CODE></A>, <A HREF="../../javax/naming/Context.html#bind(javax.naming.Name, java.lang.Object)"><CODE>Context.bind(Name, Object)</CODE></A>, <A HREF="../../javax/naming/directory/DirContext.html#rebind(javax.naming.Name, java.lang.Object, javax.naming.directory.Attributes)"><CODE>DirContext.rebind(Name, Object, javax.naming.directory.Attributes)</CODE></A>, <A HREF="../../javax/naming/directory/DirContext.html"><CODE>DirContext</CODE></A></DL></DD></DL><HR><A NAME="unbind(java.lang.String)"><!-- --></A><H3>unbind</H3><PRE>public void <B>unbind</B>(<A HREF="../../java/lang/String.html">String</A> name) throws <A HREF="../../javax/naming/NamingException.html">NamingException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../javax/naming/Context.html">Context</A></CODE></B></DD><DD>Unbinds the named object. See <A HREF="../../javax/naming/Context.html#unbind(javax.naming.Name)"><CODE>Context.unbind(Name)</CODE></A> for details.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../javax/naming/Context.html#unbind(java.lang.String)">unbind</A></CODE> in interface <CODE><A HREF="../../javax/naming/Context.html">Context</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.naming.Context</CODE></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name to unbind; may not be empty<DT><B>Throws:</B><DD><CODE><A HREF="../../javax/naming/NameNotFoundException.html">NameNotFoundException</A></CODE> - if an intermediate context does not exist<DD><CODE><A HREF="../../javax/naming/NamingException.html">NamingException</A></CODE> - if a naming exception is encountered</DL></DD></DL><HR><A NAME="unbind(javax.naming.Name)"><!-- --></A><H3>unbind</H3><PRE>public void <B>unbind</B>(<A HREF="../../javax/naming/Name.html">Name</A> name) throws <A HREF="../../javax/naming/NamingException.html">NamingException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../javax/naming/Context.html">Context</A></CODE></B></DD><DD>Unbinds the named object. Removes the terminal atomic name in <code>name</code> from the target context--that named by all but the terminal atomic part of <code>name</code>. <p> This method is idempotent. It succeeds even if the terminal atomic name is not bound in the target context, but throws <tt>NameNotFoundException</tt> if any of the intermediate contexts do not exist. <p> Any attributes associated with the name are removed. Intermediate contexts are not changed.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../javax/naming/Context.html#unbind(javax.naming.Name)">unbind</A></CODE> in interface <CODE><A HREF="../../javax/naming/Context.html">Context</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.naming.Context</CODE></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name to unbind; may not be empty<DT><B>Throws:</B><DD><CODE><A HREF="../../javax/naming/NameNotFoundException.html">NameNotFoundException</A></CODE> - if an intermediate context does not exist<DD><CODE><A HREF="../../javax/naming/NamingException.html">NamingException</A></CODE> - if a naming exception is encountered<DT><B>See Also: </B><DD><A HREF="../../javax/naming/Context.html#unbind(java.lang.String)"><CODE>Context.unbind(String)</CODE></A></DL></DD></DL><HR><A NAME="rename(java.lang.String, java.lang.String)"><!-- --></A><H3>rename</H3><PRE>public void <B>rename</B>(<A HREF="../../java/lang/String.html">String</A> oldName, <A HREF="../../java/lang/String.html">String</A> newName) throws <A HREF="../../javax/naming/NamingException.html">NamingException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../javax/naming/Context.html">Context</A></CODE></B></DD><DD>Binds a new name to the object bound to an old name, and unbinds the old name. See <A HREF="../../javax/naming/Context.html#rename(javax.naming.Name, javax.naming.Name)"><CODE>Context.rename(Name, Name)</CODE></A> for details.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../javax/naming/Context.html#rename(java.lang.String, java.lang.String)">rename</A></CODE> in interface <CODE><A HREF="../../javax/naming/Context.html">Context</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.naming.Context</CODE></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>oldName</CODE> - the name of the existing binding; may not be empty<DD><CODE>newName</CODE> - the name of the new binding; may not be empty<DT><B>Throws:</B><DD><CODE><A HREF="../../javax/naming/NameAlreadyBoundException.html">NameAlreadyBoundException</A></CODE> - if <tt>newName</tt> is already bound<DD><CODE><A HREF="../../javax/naming/NamingException.html">NamingException</A></CODE> - if a naming exception is encountered</DL></DD></DL><HR><A NAME="rename(javax.naming.Name, javax.naming.Name)"><!-- --></A><H3>rename</H3><PRE>public void <B>rename</B>(<A HREF="../../javax/naming/Name.html">Name</A> oldName, <A HREF="../../javax/naming/Name.html">Name</A> newName) throws <A HREF="../../javax/naming/NamingException.html">NamingException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../javax/naming/Context.html">Context</A></CODE></B></DD><DD>Binds a new name to the object bound to an old name, and unbinds the old name. Both names are relative to this context. Any attributes associated with the old name become associated with the new name. Intermediate contexts of the old name are not changed.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../javax/naming/Context.html#rename(javax.naming.Name, javax.naming.Name)">rename</A></CODE> in interface <CODE><A HREF="../../javax/naming/Context.html">Context</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.naming.Context</CODE></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>oldName</CODE> - the name of the existing binding; may not be empty<DD><CODE>newName</CODE> - the name of the new binding; may not be empty<DT><B>Throws:</B><DD><CODE><A HREF="../../javax/naming/NameAlreadyBoundException.html">NameAlreadyBoundException</A></CODE> - if <tt>newName</tt> is already bound<DD><CODE><A HREF="../../javax/naming/NamingException.html">NamingException</A></CODE> - if a naming exception is encountered<DT><B>See Also: </B><DD><A HREF="../../javax/naming/Context.html#rename(java.lang.String, java.lang.String)"><CODE>Context.rename(String, String)</CODE></A>, <A HREF="../../javax/naming/Context.html#bind(javax.naming.Name, java.lang.Object)"><CODE>Context.bind(Name, Object)</CODE></A>, <A HREF="../../javax/naming/Context.html#rebind(javax.naming.Name, java.lang.Object)"><CODE>Context.rebind(Name, Object)</CODE></A></DL></DD></DL><HR><A NAME="list(java.lang.String)"><!-- --></A><H3>list</H3><PRE>public <A HREF="../../javax/naming/NamingEnumeration.html">NamingEnumeration</A> <B>list</B>(<A HREF="../../java/lang/String.html">String</A> name) throws <A HREF="../../javax/naming/NamingException.html">NamingException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../javax/naming/Context.html">Context</A></CODE></B></DD><DD>Enumerates the names bound in the named context, along with the class names of objects bound to them. See <A HREF="../../javax/naming/Context.html#list(javax.naming.Name)"><CODE>Context.list(Name)</CODE></A> for details.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../javax/naming/Context.html#list(java.lang.String)">list</A></CODE> in interface <CODE><A HREF="../../javax/naming/Context.html">Context</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.naming.Context</CODE></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the context to list<DT><B>Returns:</B><DD>an enumeration of the names and class names of the bindings in this context. Each element of the enumeration is of type <tt>NameClassPair</tt>.<DT><B>Throws:</B><DD><CODE><A HREF="../../javax/naming/NamingException.html">NamingException</A></CODE> - if a naming exception is encountered</DL></DD></DL><HR><A NAME="list(javax.naming.Name)"><!-- --></A><H3>list</H3><PRE>public <A HREF="../../javax/naming/NamingEnumeration.html">NamingEnumeration</A> <B>list</B>(<A HREF="../../javax/naming/Name.html">Name</A> name) throws <A HREF="../../javax/naming/NamingException.html">NamingException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../javax/naming/Context.html">Context</A></CODE></B></DD><DD>Enumerates the names bound in the named context, along with the class names of objects bound to them. The contents of any subcontexts are not included. <p> If a binding is added to or removed from this context, its effect on an enumeration previously returned is undefined.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../javax/naming/Context.html#list(javax.naming.Name)">list</A></CODE> in interface <CODE><A HREF="../../javax/naming/Context.html">Context</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.naming.Context</CODE></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the context to list<DT><B>Returns:</B><DD>an enumeration of the names and class names of the bindings in this context. Each element of the enumeration is of type <tt>NameClassPair</tt>.<DT><B>Throws:</B><DD><CODE><A HREF="../../javax/naming/NamingException.html">NamingException</A></CODE> - if a naming exception is encountered<DT><B>See Also: </B><DD><A HREF="../../javax/naming/Context.html#list(java.lang.String)"><CODE>Context.list(String)</CODE></A>, <A HREF="../../javax/naming/Context.html#listBindings(javax.naming.Name)"><CODE>Context.listBindings(Name)</CODE></A>, <A HREF="../../javax/naming/NameClassPair.html"><CODE>NameClassPair</CODE></A></DL></DD></DL><HR><A NAME="listBindings(java.lang.String)"><!-- --></A><H3>listBindings</H3><PRE>public <A HREF="../../javax/naming/NamingEnumeration.html">NamingEnumeration</A> <B>listBindings</B>(<A HREF="../../java/lang/String.html">String</A> name) throws <A HREF="../../javax/naming/NamingException.html">NamingException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../javax/naming/Context.html">Context</A></CODE></B></DD><DD>Enumerates the names bound in the named context, along with the objects bound to them. See <A HREF="../../javax/naming/Context.html#listBindings(javax.naming.Name)"><CODE>Context.listBindings(Name)</CODE></A> for details.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../javax/naming/Context.html#listBindings(java.lang.String)">listBindings</A></CODE> in interface <CODE><A HREF="../../javax/naming/Context.html">Context</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.naming.Context</CODE></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the context to list<DT><B>Returns:</B><DD>an enumeration of the bindings in this context. Each element of the enumeration is of type <tt>Binding</tt>.<DT><B>Throws:</B><DD><CODE><A HREF="../../javax/naming/NamingException.html">NamingException</A></CODE> - if a naming exception is encountered</DL></DD></DL><HR><A NAME="listBindings(javax.naming.Name)"><!-- --></A><H3>listBindings</H3><PRE>public <A HREF="../../javax/naming/NamingEnumeration.html">NamingEnumeration</A> <B>listBindings</B>(<A HREF="../../javax/naming/Name.html">Name</A> name) throws <A HREF="../../javax/naming/NamingException.html">NamingException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../javax/naming/Context.html">Context</A></CODE></B></DD><DD>Enumerates the names bound in the named context, along with the objects bound to them. The contents of any subcontexts are not included. <p> If a binding is added to or removed from this context, its effect on an enumeration previously returned is undefined.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../javax/naming/Context.html#listBindings(javax.naming.Name)">listBindings</A></CODE> in interface <CODE><A HREF="../../javax/naming/Context.html">Context</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.naming.Context</CODE></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the context to list<DT><B>Returns:</B><DD>an enumeration of the bindings in this context. Each element of the enumeration is of type <tt>Binding</tt>.<DT><B>Throws:</B><DD><CODE><A HREF="../../javax/naming/NamingException.html">NamingException</A></CODE> - if a naming exception is encountered<DT><B>See Also: </B><DD><A HREF="../../javax/naming/Context.html#listBindings(java.lang.String)"><CODE>Context.listBindings(String)</CODE></A>, <A HREF="../../javax/naming/Context.html#list(javax.naming.Name)"><CODE>Context.list(Name)</CODE></A>, <A HREF="../../javax/naming/Binding.html"><CODE>Binding</CODE></A></DL></DD></DL><HR><A NAME="destroySubcontext(java.lang.String)"><!-- --></A><H3>destroySubcontext</H3><PRE>public void <B>destroySubcontext</B>(<A HREF="../../java/lang/String.html">String</A> name) throws <A HREF="../../javax/naming/NamingException.html">NamingException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../javax/naming/Context.html">Context</A></CODE></B></DD><DD>Destroys the named context and removes it from the namespace. See <A HREF="../../javax/naming/Context.html#destroySubcont
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -