📄 initialdircontext.html
字号:
<p> This constructor will not modify <tt>environment</tt> or save a reference to it, but may save a clone.<DD><DL><DT><B>Parameters:</B><DD><CODE>environment</CODE> - environment used to create the initial DirContext. Null indicates an empty environment.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/naming/NamingException.html">NamingException</A></CODE> - if a naming exception is encountered</DL></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getAttributes(java.lang.String)"><!-- --></A><H3>getAttributes</H3><PRE>public <A HREF="../../../javax/naming/directory/Attributes.html">Attributes</A> <B>getAttributes</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/directory/DirContext.html">DirContext</A></CODE></B></DD><DD>Retrieves all of the attributes associated with a named object. See <A HREF="../../../javax/naming/directory/DirContext.html#getAttributes(javax.naming.Name)"><CODE>DirContext.getAttributes(Name)</CODE></A> for details.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/naming/directory/DirContext.html#getAttributes(java.lang.String)">getAttributes</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 from which to retrieve attributes<DT><B>Returns:</B><DD>the set of attributes associated with <code>name</code><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="getAttributes(java.lang.String, java.lang.String[])"><!-- --></A><H3>getAttributes</H3><PRE>public <A HREF="../../../javax/naming/directory/Attributes.html">Attributes</A> <B>getAttributes</B>(<A HREF="../../../java/lang/String.html">String</A> name, <A HREF="../../../java/lang/String.html">String</A>[] attrIds) 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>Retrieves selected attributes associated with a named object. See <A HREF="../../../javax/naming/directory/DirContext.html#getAttributes(javax.naming.Name, java.lang.String[])"><CODE>DirContext.getAttributes(Name, String[])</CODE></A> for details.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/naming/directory/DirContext.html#getAttributes(java.lang.String, java.lang.String[])">getAttributes</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 from which to retrieve attributes<DD><CODE>attrIds</CODE> - the identifiers of the attributes to retrieve. null indicates that all attributes should be retrieved; an empty array indicates that none should be retrieved.<DT><B>Returns:</B><DD>the requested attributes; never null<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="getAttributes(javax.naming.Name)"><!-- --></A><H3>getAttributes</H3><PRE>public <A HREF="../../../javax/naming/directory/Attributes.html">Attributes</A> <B>getAttributes</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/directory/DirContext.html">DirContext</A></CODE></B></DD><DD>Retrieves all of the attributes associated with a named object. See the class description regarding attribute models, attribute type names, and operational attributes.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/naming/directory/DirContext.html#getAttributes(javax.naming.Name)">getAttributes</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 from which to retrieve attributes<DT><B>Returns:</B><DD>the set of attributes associated with <code>name</code>. Returns an empty attribute set if name has no attributes; never null.<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/directory/DirContext.html#getAttributes(java.lang.String)"><CODE>DirContext.getAttributes(String)</CODE></A>, <A HREF="../../../javax/naming/directory/DirContext.html#getAttributes(javax.naming.Name, java.lang.String[])"><CODE>DirContext.getAttributes(Name, String[])</CODE></A></DL></DD></DL><HR><A NAME="getAttributes(javax.naming.Name, java.lang.String[])"><!-- --></A><H3>getAttributes</H3><PRE>public <A HREF="../../../javax/naming/directory/Attributes.html">Attributes</A> <B>getAttributes</B>(<A HREF="../../../javax/naming/Name.html">Name</A> name, <A HREF="../../../java/lang/String.html">String</A>[] attrIds) 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>Retrieves selected attributes associated with a named object. See the class description regarding attribute models, attribute type names, and operational attributes. <p> If the object does not have an attribute specified, the directory will ignore the nonexistent attribute and return those requested attributes that the object does have. <p> A directory might return more attributes than was requested (see <strong>Attribute Type Names</strong> in the class description), but is not allowed to return arbitrary, unrelated attributes. <p> See also <strong>Operational Attributes</strong> in the class description.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/naming/directory/DirContext.html#getAttributes(javax.naming.Name, java.lang.String[])">getAttributes</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 from which to retrieve attributes<DD><CODE>attrIds</CODE> - the identifiers of the attributes to retrieve. null indicates that all attributes should be retrieved; an empty array indicates that none should be retrieved.<DT><B>Returns:</B><DD>the requested attributes; never null<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="modifyAttributes(java.lang.String, int, javax.naming.directory.Attributes)"><!-- --></A><H3>modifyAttributes</H3><PRE>public void <B>modifyAttributes</B>(<A HREF="../../../java/lang/String.html">String</A> name, int mod_op, <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>Modifies the attributes associated with a named object. See <A HREF="../../../javax/naming/directory/DirContext.html#modifyAttributes(javax.naming.Name, int, javax.naming.directory.Attributes)"><CODE>DirContext.modifyAttributes(Name, int, Attributes)</CODE></A> for details.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/naming/directory/DirContext.html#modifyAttributes(java.lang.String, int, javax.naming.directory.Attributes)">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>mod_op</CODE> - the modification operation, one of: <code>ADD_ATTRIBUTE</code>, <code>REPLACE_ATTRIBUTE</code>, <code>REMOVE_ATTRIBUTE</code>.<DD><CODE>attrs</CODE> - the attributes to be used for the modification; map not be null<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/naming/directory/AttributeModificationException.html">AttributeModificationException</A></CODE> - if the modification 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, int, javax.naming.directory.Attributes)"><!-- --></A><H3>modifyAttributes</H3><PRE>public void <B>modifyAttributes</B>(<A HREF="../../../javax/naming/Name.html">Name</A> name, int mod_op, <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>Modifies the attributes associated with a named object. The order of the modifications is not specified. 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, int, javax.naming.directory.Attributes)">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>mod_op</CODE> - the modification operation, one of: <code>ADD_ATTRIBUTE</code>, <code>REPLACE_ATTRIBUTE</code>, <code>REMOVE_ATTRIBUTE</code>.<DD><CODE>attrs</CODE> - the attributes to be used for the modification; may not be null<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/naming/directory/AttributeModificationException.html">AttributeModificationException</A></CODE> - if the modification 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, javax.naming.directory.ModificationItem[])"><CODE>DirContext.modifyAttributes(Name, ModificationItem[])</CODE></A></DL></DD></DL><HR><A NAME="modifyAttributes(java.lang.String, javax.naming.directory.ModificationItem[])"><!-- --></A><H3>modifyAttributes</H3><PRE>public void <B>modifyAttributes</B>(<A HREF="../../../java/lang/String.html">String</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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -