📄 initialdircontext.html
字号:
<DD>Modifies the attributes associated with a named object using an an ordered list of modifications. See <A HREF="../../../javax/naming/directory/DirContext.html#modifyAttributes(javax.naming.Name, javax.naming.directory.ModificationItem[])"><CODE>DirContext.modifyAttributes(Name, ModificationItem[])</CODE></A> for details.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/naming/directory/DirContext.html#modifyAttributes(java.lang.String, javax.naming.directory.ModificationItem[])">modifyAttributes</A></CODE> in interface <CODE><A HREF="../../../javax/naming/directory/DirContext.html">DirContext</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.naming.directory.DirContext</CODE></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the object whose attributes will be updated<DD><CODE>mods</CODE> - an ordered sequence of modifications to be performed; may not be null<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/naming/directory/AttributeModificationException.html">AttributeModificationException</A></CODE> - if the modifications cannot be completed successfully<DD><CODE><A HREF="../../../javax/naming/NamingException.html">NamingException</A></CODE> - if a naming exception is encountered</DL></DD></DL><HR><A NAME="modifyAttributes(javax.naming.Name, javax.naming.directory.ModificationItem[])"><!-- --></A><H3>modifyAttributes</H3><PRE>public void <B>modifyAttributes</B>(<A HREF="../../../javax/naming/Name.html">Name</A> name, <A HREF="../../../javax/naming/directory/ModificationItem.html">ModificationItem</A>[] mods) throws <A HREF="../../../javax/naming/NamingException.html">NamingException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../javax/naming/directory/DirContext.html">DirContext</A></CODE></B></DD><DD>Modifies the attributes associated with a named object using an an ordered list of modifications. The modifications are performed in the order specified. Each modification specifies a modification operation code and an attribute on which to operate. Where possible, the modifications are performed atomically.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/naming/directory/DirContext.html#modifyAttributes(javax.naming.Name, javax.naming.directory.ModificationItem[])">modifyAttributes</A></CODE> in interface <CODE><A HREF="../../../javax/naming/directory/DirContext.html">DirContext</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.naming.directory.DirContext</CODE></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the object whose attributes will be updated<DD><CODE>mods</CODE> - an ordered sequence of modifications to be performed; may not be null<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/naming/directory/AttributeModificationException.html">AttributeModificationException</A></CODE> - if the modifications cannot be completed successfully<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/directory/DirContext.html#modifyAttributes(javax.naming.Name, int, javax.naming.directory.Attributes)"><CODE>DirContext.modifyAttributes(Name, int, Attributes)</CODE></A>, <A HREF="../../../javax/naming/directory/ModificationItem.html"><CODE>ModificationItem</CODE></A></DL></DD></DL><HR><A NAME="bind(java.lang.String, java.lang.Object, javax.naming.directory.Attributes)"><!-- --></A><H3>bind</H3><PRE>public void <B>bind</B>(<A HREF="../../../java/lang/String.html">String</A> name, <A HREF="../../../java/lang/Object.html">Object</A> obj, <A HREF="../../../javax/naming/directory/Attributes.html">Attributes</A> attrs) throws <A HREF="../../../javax/naming/NamingException.html">NamingException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../javax/naming/directory/DirContext.html">DirContext</A></CODE></B></DD><DD>Binds a name to an object, along with associated attributes. See <A HREF="../../../javax/naming/directory/DirContext.html#bind(javax.naming.Name, java.lang.Object, javax.naming.directory.Attributes)"><CODE>DirContext.bind(Name, Object, Attributes)</CODE></A> for details.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/naming/directory/DirContext.html#bind(java.lang.String, java.lang.Object, javax.naming.directory.Attributes)">bind</A></CODE> in interface <CODE><A HREF="../../../javax/naming/directory/DirContext.html">DirContext</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.naming.directory.DirContext</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<DD><CODE>attrs</CODE> - the attributes to associate with the binding<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/naming/NameAlreadyBoundException.html">NameAlreadyBoundException</A></CODE> - if name is already bound<DD><CODE><A HREF="../../../javax/naming/directory/InvalidAttributesException.html">InvalidAttributesException</A></CODE> - if some "mandatory" attributes of the binding are not supplied<DD><CODE><A HREF="../../../javax/naming/NamingException.html">NamingException</A></CODE> - if a naming exception is encountered</DL></DD></DL><HR><A NAME="bind(javax.naming.Name, java.lang.Object, javax.naming.directory.Attributes)"><!-- --></A><H3>bind</H3><PRE>public void <B>bind</B>(<A HREF="../../../javax/naming/Name.html">Name</A> name, <A HREF="../../../java/lang/Object.html">Object</A> obj, <A HREF="../../../javax/naming/directory/Attributes.html">Attributes</A> attrs) throws <A HREF="../../../javax/naming/NamingException.html">NamingException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../javax/naming/directory/DirContext.html">DirContext</A></CODE></B></DD><DD>Binds a name to an object, along with associated attributes. If <tt>attrs</tt> is null, the resulting binding will have the attributes associated with <tt>obj</tt> if <tt>obj</tt> is a <tt>DirContext</tt>, and no attributes otherwise. If <tt>attrs</tt> is non-null, the resulting binding will have <tt>attrs</tt> as its attributes; any attributes associated with <tt>obj</tt> are ignored.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/naming/directory/DirContext.html#bind(javax.naming.Name, java.lang.Object, javax.naming.directory.Attributes)">bind</A></CODE> in interface <CODE><A HREF="../../../javax/naming/directory/DirContext.html">DirContext</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.naming.directory.DirContext</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<DD><CODE>attrs</CODE> - the attributes to associate with the binding<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/naming/NameAlreadyBoundException.html">NameAlreadyBoundException</A></CODE> - if name is already bound<DD><CODE><A HREF="../../../javax/naming/directory/InvalidAttributesException.html">InvalidAttributesException</A></CODE> - if some "mandatory" attributes of the binding are not supplied<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#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, Attributes)</CODE></A></DL></DD></DL><HR><A NAME="rebind(java.lang.String, java.lang.Object, javax.naming.directory.Attributes)"><!-- --></A><H3>rebind</H3><PRE>public void <B>rebind</B>(<A HREF="../../../java/lang/String.html">String</A> name, <A HREF="../../../java/lang/Object.html">Object</A> obj, <A HREF="../../../javax/naming/directory/Attributes.html">Attributes</A> attrs) throws <A HREF="../../../javax/naming/NamingException.html">NamingException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../javax/naming/directory/DirContext.html">DirContext</A></CODE></B></DD><DD>Binds a name to an object, along with associated attributes, overwriting any existing binding. See <A HREF="../../../javax/naming/directory/DirContext.html#rebind(javax.naming.Name, java.lang.Object, javax.naming.directory.Attributes)"><CODE>DirContext.rebind(Name, Object, Attributes)</CODE></A> for details.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/naming/directory/DirContext.html#rebind(java.lang.String, java.lang.Object, javax.naming.directory.Attributes)">rebind</A></CODE> in interface <CODE><A HREF="../../../javax/naming/directory/DirContext.html">DirContext</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.naming.directory.DirContext</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<DD><CODE>attrs</CODE> - the attributes to associate with the binding<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/naming/directory/InvalidAttributesException.html">InvalidAttributesException</A></CODE> - if some "mandatory" attributes of the binding are not supplied<DD><CODE><A HREF="../../../javax/naming/NamingException.html">NamingException</A></CODE> - if a naming exception is encountered</DL></DD></DL><HR><A NAME="rebind(javax.naming.Name, java.lang.Object, javax.naming.directory.Attributes)"><!-- --></A><H3>rebind</H3><PRE>public void <B>rebind</B>(<A HREF="../../../javax/naming/Name.html">Name</A> name, <A HREF="../../../java/lang/Object.html">Object</A> obj, <A HREF="../../../javax/naming/directory/Attributes.html">Attributes</A> attrs) throws <A HREF="../../../javax/naming/NamingException.html">NamingException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../javax/naming/directory/DirContext.html">DirContext</A></CODE></B></DD><DD>Binds a name to an object, along with associated attributes, overwriting any existing binding. If <tt>attrs</tt> is null and <tt>obj</tt> is a <tt>DirContext</tt>, the attributes from <tt>obj</tt> are used. If <tt>attrs</tt> is null and <tt>obj</tt> is not a <tt>DirContext</tt>, any existing attributes associated with the object already bound in the directory remain unchanged. If <tt>attrs</tt> is non-null, any existing attributes associated with the object already bound in the directory are removed and <tt>attrs</tt> is associated with the named object. If <tt>obj</tt> is a <tt>DirContext</tt> and <tt>attrs</tt> is non-null, the attributes of <tt>obj</tt> are ignored.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/naming/directory/DirContext.html#rebind(javax.naming.Name, java.lang.Object, javax.naming.directory.Attributes)">rebind</A></CODE> in interface <CODE><A HREF="../../../javax/naming/directory/DirContext.html">DirContext</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.naming.directory.DirContext</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<DD><CODE>attrs</CODE> - the attributes to associate with the binding<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/naming/directory/InvalidAttributesException.html">InvalidAttributesException</A></CODE> - if some "mandatory" attributes of the binding are not supplied<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#bind(javax.naming.Name, java.lang.Object)"><CODE>Context.bind(Name, Object)</CODE></A>, <A HREF="../../../javax/naming/directory/DirContext.html#bind(javax.naming.Name, java.lang.Object, javax.naming.directory.Attributes)"><CODE>DirContext.bind(Name, Object, Attributes)</CODE></A></DL></DD></DL><HR><A NAME="createSubcontext(java.lang.String, javax.naming.directory.Attributes)"><!-- --></A><H3>createSubcontext</H3><PRE>public <A HREF="../../../javax/naming/directory/DirContext.html">DirContext</A> <B>createSubcontext</B>(<A HREF="../../../java/lang/String.html">String</A> name, <A HREF="../../../javax/naming/directory/Attributes.html">Attributes</A> attrs) throws <A HREF="../../../javax/naming/NamingException.html">NamingException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../javax/naming/directory/DirContext.html">DirContext</A></CODE></B></DD><DD>Creates and binds a new context, along with associated attributes. See <A HREF="../../../javax/naming/directory/DirContext.html#createSubcontext(javax.naming.Name, javax.naming.directory.Attributes)"><CODE>DirContext.createSubcontext(Name, Attributes)</CODE></A> for details.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/naming/directory/DirContext.html#createSubcontext(java.lang.String, javax.naming.directory.Attributes)">createSubcontext</A></CODE> in interface <CODE><A HREF="../../../javax/naming/directory/DirContext.html">DirContext</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.naming.directory.DirContext</CODE></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the context to create; may not be empty<DD><CODE>attrs</CODE> - the attributes to associate with the newly created context<DT><B>Returns:</B><DD>the newly created context<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/naming/NameAlreadyBoundException.html">NameAlreadyBoundException</A></CODE> - if the name is already bound<DD><CODE><A HREF="../../../javax/naming/directory/InvalidAttributesException.html">InvalidAttributesException</A></CODE> - if <code>attrs</code> does not contain all the mandatory attributes required for creation<DD><CODE><A HREF="../../../javax/naming/NamingException.html">NamingException</A></CODE> - if a naming exception is encountered</DL></DD></DL><HR><A NAME="createSubcontext(javax.naming.Name, javax.naming.directory.Attributes)"><!-- --></A><H3>createSubcontext</H3><PRE>pu
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -