Class JDAPCompareRequest

  • All Implemented Interfaces:
    JDAPProtocolOp

    public class JDAPCompareRequest
    extends JDAPBaseDNRequest
    implements JDAPProtocolOp
    This class implements the compare request. This object is sent to the ldap server.
       CompareRequest ::= [APPLICATION 14] SEQUENCE {
         entry LDAPDN,
         ava AttributeValueAssertion
       }
     
    Version:
    1.0
    • Field Detail

      • m_dn

        protected java.lang.String m_dn
        Internal variables
    • Constructor Detail

      • JDAPCompareRequest

        public JDAPCompareRequest​(java.lang.String dn,
                                  JDAPAVA ava)
        Constructs the compare request.
        Parameters:
        dn - distinguished name of the entry to be compared
        ava - attribut value assertion
    • Method Detail

      • getType

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

        public void setBaseDN​(java.lang.String basedn)
        Sets the base dn.
        Specified by:
        setBaseDN in class JDAPBaseDNRequest
        Parameters:
        basedn - base dn
      • getBaseDN

        public java.lang.String getBaseDN()
        Gets the base dn.
        Specified by:
        getBaseDN in class JDAPBaseDNRequest
        Returns:
        base dn
      • toString

        public java.lang.String toString()
        Retrieves the string representation of the request.
        Specified by:
        toString in interface JDAPProtocolOp
        Overrides:
        toString in class java.lang.Object
        Returns:
        string representation