Class JDAPExtendedResponse

  • All Implemented Interfaces:
    JDAPProtocolOp

    public class JDAPExtendedResponse
    extends JDAPResult
    implements JDAPProtocolOp
    This class implements the extended response. This object is sent from the ldap server to the interface and is a v3 response. See RFC 1777.
     ExtendedResponse :: [APPLICATION 23] SEQUENCE {
       COMPONENTS OF LDAPResult,
       responseName [10] LDAPOID OPTIONAL,
       response     [11] OCTET STRING OPTIONAL
     }
     
    Version:
    1.0
    • Field Detail

      • m_oid

        protected java.lang.String m_oid
        Internal variables
      • m_value

        protected byte[] m_value
    • Constructor Detail

      • JDAPExtendedResponse

        public JDAPExtendedResponse​(BERElement element)
                             throws java.io.IOException
        Constructs extended response.
        Parameters:
        element - ber element of add response
        Throws:
        java.io.IOException
    • Method Detail

      • getType

        public int getType()
        Retrieves the protocol operation type.
        Specified by:
        getType in interface JDAPProtocolOp
        Returns:
        protocol type
      • getValue

        public byte[] getValue()
        Retrieves the results of the extended operation.
        Returns:
        extended operation results as byte array
      • getID

        public java.lang.String getID()
        Retrieves the oid of the extended operation.
        Returns:
        extended operation oid.
      • toString

        public java.lang.String toString()
        Retrieve the string representation.
        Specified by:
        toString in interface JDAPProtocolOp
        Overrides:
        toString in class JDAPResult
        Returns:
        string representation