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

📄 package-summary.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Thu Apr 27 23:31:52 PDT 2000 --><TITLE>Java 2 Platform SE v1.3: Package javax.naming.ldap</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_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>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Package</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-use.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../javax/naming/event/package-summary.html"><B>PREV PACKAGE</B></A>&nbsp;&nbsp;<A HREF="../../../javax/naming/spi/package-summary.html"><B>NEXT PACKAGE</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="package-summary.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><H2>Package javax.naming.ldap</H2>Provides support for LDAPv3 extended operations and controls.<P><B>See: </B><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="#package_description"><B>Description</B></A><P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Interface Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="Control.html"><I>Control</I></A></B></TD><TD>This interface represents an LDAPv3 control as defined in  <A HREF="ftp://ftp.isi.edu/in-notes/rfc2251.txt">RFC 2251</A>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="ExtendedRequest.html"><I>ExtendedRequest</I></A></B></TD><TD>This interface represents an LDAPv3 extended operation request as defined in <A HREF="ftp://ftp.isi.edu/in-notes/rfc2251.txt">RFC 2251</A>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="ExtendedResponse.html"><I>ExtendedResponse</I></A></B></TD><TD>This interface represents an LDAP extended operation response as defined in <A HREF="ftp://ftp.isi.edu/in-notes/rfc2251.txt">RFC 2251</A>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="HasControls.html"><I>HasControls</I></A></B></TD><TD>This interface is for returning controls with objects returned in NamingEnumerations.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="LdapContext.html"><I>LdapContext</I></A></B></TD><TD>This interface represents a context in which you can perform operations with LDAPv3-style controls and perform LDAPv3-style extended operations.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="UnsolicitedNotification.html"><I>UnsolicitedNotification</I></A></B></TD><TD>This interface represents an unsolicited notification as defined in <A HREF="ftp://ftp.isi.edu/in-notes/rfc2251.txt">RFC 2251</A>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="UnsolicitedNotificationListener.html"><I>UnsolicitedNotificationListener</I></A></B></TD><TD>This interface is for handling <tt>UnsolicitedNotificationEvent</tt>.</TD></TR></TABLE>&nbsp;<P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Class Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="ControlFactory.html">ControlFactory</A></B></TD><TD>This abstract class represents a factory for creating LDAPv3 controls.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="InitialLdapContext.html">InitialLdapContext</A></B></TD><TD>This class is the starting context for performing  LDAPv3-style extended operations and controls.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="UnsolicitedNotificationEvent.html">UnsolicitedNotificationEvent</A></B></TD><TD>This class represents an event fired in response to an unsolicited notification sent by the LDAP server.</TD></TR></TABLE>&nbsp;<P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Exception Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD WIDTH="15%"><B><A HREF="LdapReferralException.html">LdapReferralException</A></B></TD><TD>This abstract class is used to represent an LDAP referral exception.</TD></TR></TABLE>&nbsp;<P><A NAME="package_description"><!-- --></A><H2>Package javax.naming.ldap Description</H2><P>Provides support for LDAPv3 extended operations and controls.<p>This package extends the directory operations of the Java Naming andDirectory Interface<font size=-2><sup>TM</sup></font> (JNDI). &nbsp;JNDI provides naming and directory functionality to applicationswritten in the Java programming language.  It is designed to beindependent of any specific naming or directory serviceimplementation.  Thus a variety of services--new, emerging, andalready deployed ones--can be accessed in a common way.<p>This package is for applications and service providers that deal withLDAPv3 extended operations and controls, as defined by<a href=http://www.ietf.org/rfc/rfc2251.txt>RFC 2251</a>.The core interface in this package is <tt>LdapContext</tt>, which definesmethods on a context for performing extended operations and handlingcontrols.<h4>Extended Operations</h4><p>This package defines the interface <tt>ExtendedRequest</tt>to represent the argument to an extended operation,and the interface <tt>ExtendedResponse</tt> to represent the resultof the extended operation.An extended response is always paired with an extended requestbut not necessarily vice versa. That is, you can have an extended requestthat has no corresponding extended response.<p>An application typically does not deal directly with these interfaces.Instead, it deals with classes that <em>implement</em> theseinterfaces.  The application gets these classes either as part of arepertoire of extended operations standardized through the IETF, orfrom directory vendors for vendor-specific extended operations.The request classes should have constructors that acceptarguments in a type-safe and user-friendly manner, while theresponse classes should have access methods for getting the dataof the response in a type-safe and user-friendly manner.Internally, the request/response classes deal with encoding and decodingBER values.<p>For example, suppose an LDAP server supports a "get time" extended operation.It would supply classes such as<tt>GetTimeRequest</tt> and <tt>GetTimeResponse</tt>,so that applications can use this feature.An application would use these classes as follows:<blockquote><pre>GetTimeResponse resp =    (GetTimeResponse) ectx.extendedOperation(new GetTimeRequest());long time = resp.getTime();</pre></blockquote><p>The <tt>GetTimeRequest</tt> and <tt>GetTimeResponse</tt> classes mightbe defined as follows:<blockquote><pre>public class GetTimeRequest implements ExtendedRequest {    // User-friendly constructor     public GetTimeRequest() {    };    // Methods used by service providers    public String getID() {        return GETTIME_REQ_OID;    }    public byte[] getEncodedValue() {        return null;  // no value needed for get time request    }    public ExtendedResponse createExtendedResponse(        String id, byte[] berValue, int offset, int length) throws NamingException {        return new GetTimeResponse(id, berValue, offset, length);    }}public class GetTimeResponse() implements ExtendedResponse {    long time;    // called by GetTimeRequest.createExtendedResponse()    GetTimeResponse(String id, byte[] berValue, int offset, int length) 

⌨️ 快捷键说明

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