Class JNDIExtendedResponse

java.lang.Object
com.unboundid.ldap.sdk.migrate.jndi.JNDIExtendedResponse
All Implemented Interfaces:
Serializable, ExtendedResponse

This class provides a mechanism for converting between an LDAP extended response as used in JNDI and one used in the UnboundID LDAP SDK for Java.
See Also:
  • Constructor Details

    • JNDIExtendedResponse

      Creates a new JNDI extended response from the provided SDK extended result.
      Parameters:
      r - The SDK extended result to use to create this JNDI extended response.
    • JNDIExtendedResponse

      Creates a new JNDI extended response from the provided JNDI extended response.
      Parameters:
      r - The JNDI extended response to use to create this JNDI extended response.
      Throws:
      NamingException - If a problem occurs while trying to create this JNDI extended response.
  • Method Details

    • getID

      Retrieves the object identifier for this extended response, if available.
      Specified by:
      getID in interface ExtendedResponse
      Returns:
      The object identifier for this extended response, or null if there is no OID.
    • getEncodedValue

      @Nullable public byte[] getEncodedValue()
      Retrieves the encoded value for this extended response (including the BER type and length), if available.
      Specified by:
      getEncodedValue in interface ExtendedResponse
      Returns:
      The encoded value for this extended response, or null if there is no value.
    • toSDKExtendedResult

      Retrieves an LDAP SDK extended result that is the equivalent of this JNDI extended response.
      Returns:
      An LDAP SDK extended result that is the equivalent of this JNDI extended response.
    • toSDKExtendedResult

      Retrieves an LDAP SDK extended result that is the equivalent of the provided JNDI extended response.
      Parameters:
      r - The JNDI extended response to convert to an LDAP SDK extended result.
      Returns:
      The LDAP SDK extended result converted from the provided JNDI extended response.
      Throws:
      NamingException - If a problem occurs while decoding the provided JNDI extended response as an SDK extended result.
    • toString

      Retrieves a string representation of this JNDI extended response.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this JNDI response.