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, theExtendedResult
class should be used instead.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LDAPExtendedResponse(ExtendedResult extendedResult)
Creates a new LDAP extended response from the providedExtendedResult
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getID()
Retrieves the OID for this LDAP extended response, if any.byte[]
getValue()
Retrieves the value for this LDAP extended response, if any.ExtendedResult
toExtendedResult()
Retrieves anExtendedResult
object that is the equivalent of this LDAP extended response.java.lang.String
toString()
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 providedExtendedResult
object.- Parameters:
extendedResult
- TheExtendedResult
to 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
null
if 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
null
if there is none.
-
toExtendedResult
@NotNull public final ExtendedResult toExtendedResult()
Retrieves anExtendedResult
object that is the equivalent of this LDAP extended response.- Returns:
- An
ExtendedResult
object 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:
toString
in classLDAPResponse
- Returns:
- A string representation of this LDAP extended response.
-
-