Class LDAPExtendedResponse
- java.lang.Object
-
- com.unboundid.ldap.sdk.migrate.ldapjdk.LDAPResponse
-
- com.unboundid.ldap.sdk.migrate.ldapjdk.LDAPExtendedResponse
-
- All Implemented Interfaces:
java.io.Serializable
@Extensible @NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public class LDAPExtendedResponse extends LDAPResponse
This class provides a data structure which represents an LDAP extended response.
This class is primarily intended to be used in the process of updating applications which use the Netscape Directory SDK for Java to switch to or coexist with the UnboundID LDAP SDK for Java. For applications not written using the Netscape Directory SDK for Java, theExtendedResultclass should be used instead.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LDAPExtendedResponse(ExtendedResult extendedResult)Creates a new LDAP extended response from the providedExtendedResultobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetID()Retrieves the OID for this LDAP extended response, if any.byte[]getValue()Retrieves the value for this LDAP extended response, if any.ExtendedResulttoExtendedResult()Retrieves anExtendedResultobject that is the equivalent of this LDAP extended response.java.lang.StringtoString()Retrieves a string representation of this LDAP extended response.-
Methods inherited from class com.unboundid.ldap.sdk.migrate.ldapjdk.LDAPResponse
getControls, getErrorMessage, getMatchedDN, getMessageID, getReferrals, getResultCode, toLDAPResult
-
-
-
-
Constructor Detail
-
LDAPExtendedResponse
public LDAPExtendedResponse(@NotNull ExtendedResult extendedResult)
Creates a new LDAP extended response from the providedExtendedResultobject.- Parameters:
extendedResult- TheExtendedResultto use to create this LDAP extended response.
-
-
Method Detail
-
getID
@Nullable public java.lang.String getID()
Retrieves the OID for this LDAP extended response, if any.- Returns:
- The OID for this LDAP extended response, or
nullif there is none.
-
getValue
@Nullable public byte[] getValue()
Retrieves the value for this LDAP extended response, if any.- Returns:
- The value for this LDAP extended response, or
nullif there is none.
-
toExtendedResult
@NotNull public final ExtendedResult toExtendedResult()
Retrieves anExtendedResultobject that is the equivalent of this LDAP extended response.- Returns:
- An
ExtendedResultobject that is the equivalent of this LDAP extended response.
-
toString
@NotNull public java.lang.String toString()
Retrieves a string representation of this LDAP extended response.- Overrides:
toStringin classLDAPResponse- Returns:
- A string representation of this LDAP extended response.
-
-