Class JNDIExtendedResponse

    • Constructor Summary

      Constructors 
      Constructor Description
      JNDIExtendedResponse​(ExtendedResult r)
      Creates a new JNDI extended response from the provided SDK extended result.
      JNDIExtendedResponse​(javax.naming.ldap.ExtendedResponse r)
      Creates a new JNDI extended response from the provided JNDI extended response.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getEncodedValue()
      Retrieves the encoded value for this extended response (including the BER type and length), if available.
      java.lang.String getID()
      Retrieves the object identifier for this extended response, if available.
      ExtendedResult toSDKExtendedResult()
      Retrieves an LDAP SDK extended result that is the equivalent of this JNDI extended response.
      static ExtendedResult toSDKExtendedResult​(javax.naming.ldap.ExtendedResponse r)
      Retrieves an LDAP SDK extended result that is the equivalent of the provided JNDI extended response.
      java.lang.String toString()
      Retrieves a string representation of this JNDI extended response.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • JNDIExtendedResponse

        public JNDIExtendedResponse​(ExtendedResult r)
        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

        public JNDIExtendedResponse​(javax.naming.ldap.ExtendedResponse r)
                             throws javax.naming.NamingException
        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:
        javax.naming.NamingException - If a problem occurs while trying to create this JNDI extended response.
    • Method Detail

      • getID

        public java.lang.String getID()
        Retrieves the object identifier for this extended response, if available.
        Specified by:
        getID in interface javax.naming.ldap.ExtendedResponse
        Returns:
        The object identifier for this extended response, or null if there is no OID.
      • getEncodedValue

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

        public ExtendedResult 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

        public static ExtendedResult toSDKExtendedResult​(javax.naming.ldap.ExtendedResponse r)
                                                  throws javax.naming.NamingException
        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:
        javax.naming.NamingException - If a problem occurs while decoding the provided JNDI extended response as an SDK extended result.
      • toString

        public java.lang.String toString()
        Retrieves a string representation of this JNDI extended response.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of this JNDI response.