com.unboundid.ldap.sdk.migrate.ldapjdk
Class LDAPExtendedResponse

java.lang.Object
  extended by com.unboundid.ldap.sdk.migrate.ldapjdk.LDAPResponse
      extended by 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, the ExtendedResult class should be used instead.

See Also:
Serialized Form

Constructor Summary
LDAPExtendedResponse(ExtendedResult extendedResult)
          Creates a new LDAP extended response from the provided ExtendedResult object.
 
Method Summary
 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 an ExtendedResult 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LDAPExtendedResponse

public LDAPExtendedResponse(ExtendedResult extendedResult)
Creates a new LDAP extended response from the provided ExtendedResult object.

Parameters:
extendedResult - The ExtendedResult to use to create this LDAP extended response.
Method Detail

getID

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

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

public final ExtendedResult toExtendedResult()
Retrieves an ExtendedResult object that is the equivalent of this LDAP extended response.

Returns:
An ExtendedResult object that is the equivalent of this LDAP extended response.

toString

public java.lang.String toString()
Retrieves a string representation of this LDAP extended response.

Overrides:
toString in class LDAPResponse
Returns:
A string representation of this LDAP extended response.