📄 initialldapcontext.html
字号:
<DD>Retrieves the connection request controls in effect for this context. The controls are owned by the JNDI implementation and are immutable. Neither the array nor the controls may be modified by the caller.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/naming/ldap/LdapContext.html#getConnectControls()">getConnectControls</A></CODE> in interface <CODE><A HREF="../../../javax/naming/ldap/LdapContext.html">LdapContext</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.naming.ldap.LdapContext</CODE></DD><DD><DL><DT><B>Returns:</B><DD>A possibly-null array of controls. null means no connect controls have been set for this context.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/naming/NamingException.html">NamingException</A></CODE> - If an error occurred while getting the request controls.</DL></DD></DL><HR><A NAME="setRequestControls(javax.naming.ldap.Control[])"><!-- --></A><H3>setRequestControls</H3><PRE>public void <B>setRequestControls</B>(<A HREF="../../../javax/naming/ldap/Control.html">Control</A>[] requestControls) throws <A HREF="../../../javax/naming/NamingException.html">NamingException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../javax/naming/ldap/LdapContext.html">LdapContext</A></CODE></B></DD><DD>Sets the request controls for methods subsequently invoked on this context. The request controls are owned by the JNDI implementation and are immutable. Neither the array nor the controls may be modified by the caller. <p> This removes any previous request controls and adds <tt>requestControls</tt> for use by subsequent methods invoked on this context. This method does not affect this context's connection request controls.<p> Note that <tt>requestControls</tt> will be in effect until the next invocation of <tt>setRequestControls()</tt>. You need to explicitly invoke <tt>setRequestControls()</tt> with <tt>null</tt> or an empty array to clear the controls if you don't want them to affect the context methods any more. To check what request controls are in effect for this context, use <tt>getRequestControls()</tt>.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/naming/ldap/LdapContext.html#setRequestControls(javax.naming.ldap.Control[])">setRequestControls</A></CODE> in interface <CODE><A HREF="../../../javax/naming/ldap/LdapContext.html">LdapContext</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.naming.ldap.LdapContext</CODE></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>requestControls</CODE> - The possibly null controls to use. If null, no controls are used.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/naming/NamingException.html">NamingException</A></CODE> - If an error occurred while setting the request controls.<DT><B>See Also: </B><DD><A HREF="../../../javax/naming/ldap/LdapContext.html#getRequestControls()"><CODE>LdapContext.getRequestControls()</CODE></A></DL></DD></DL><HR><A NAME="getRequestControls()"><!-- --></A><H3>getRequestControls</H3><PRE>public <A HREF="../../../javax/naming/ldap/Control.html">Control</A>[] <B>getRequestControls</B>() throws <A HREF="../../../javax/naming/NamingException.html">NamingException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../javax/naming/ldap/LdapContext.html">LdapContext</A></CODE></B></DD><DD>Retrieves the request controls in effect for this context. The request controls are owned by the JNDI implementation and are immutable. Neither the array nor the controls may be modified by the caller.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/naming/ldap/LdapContext.html#getRequestControls()">getRequestControls</A></CODE> in interface <CODE><A HREF="../../../javax/naming/ldap/LdapContext.html">LdapContext</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.naming.ldap.LdapContext</CODE></DD><DD><DL><DT><B>Returns:</B><DD>A possibly-null array of controls. null means no request controls have been set for this context.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/naming/NamingException.html">NamingException</A></CODE> - If an error occurred while getting the request controls.<DT><B>See Also: </B><DD><A HREF="../../../javax/naming/ldap/LdapContext.html#setRequestControls(javax.naming.ldap.Control[])"><CODE>LdapContext.setRequestControls(javax.naming.ldap.Control[])</CODE></A></DL></DD></DL><HR><A NAME="getResponseControls()"><!-- --></A><H3>getResponseControls</H3><PRE>public <A HREF="../../../javax/naming/ldap/Control.html">Control</A>[] <B>getResponseControls</B>() throws <A HREF="../../../javax/naming/NamingException.html">NamingException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../javax/naming/ldap/LdapContext.html">LdapContext</A></CODE></B></DD><DD>Retrieves the response controls produced as a result of the last method invoked on this context. The response controls are owned by the JNDI implementation and are immutable. Neither the array nor the controls may be modified by the caller.<p> These response controls might have been generated by a successful or failed operation.<p> When a context method that may return response controls is invoked, response controls from the previous method invocation are cleared. <tt>getResponseControls()</tt> returns all of the response controls generated by LDAP operations used by the context method in the order received from the LDAP server. Invoking <tt>getResponseControls()</tt> does not clear the response controls. You can call it many times (and get back the same controls) until the next context method that may return controls is invoked.<p><DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/naming/ldap/LdapContext.html#getResponseControls()">getResponseControls</A></CODE> in interface <CODE><A HREF="../../../javax/naming/ldap/LdapContext.html">LdapContext</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.naming.ldap.LdapContext</CODE></DD><DD><DL><DT><B>Returns:</B><DD>A possibly null array of controls. If null, the previous method invoked on this context did not produce any controls.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/naming/NamingException.html">NamingException</A></CODE> - If an error occurred while getting the response controls.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/InitialLdapContext.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../javax/naming/ldap/ControlFactory.html"><B>PREV CLASS</B></A> <A HREF="../../../javax/naming/ldap/UnsolicitedNotificationEvent.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="InitialLdapContext.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#fields_inherited_from_class_javax.naming.InitialContext">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -