Class JDAPAddRequest

  • All Implemented Interfaces:
    JDAPProtocolOp

    public class JDAPAddRequest
    extends JDAPBaseDNRequest
    implements JDAPProtocolOp
    This class implements the add request. This object is sent to the ldap server. See RFC 1777.
     AddRequest ::= [APPLICATION 8] SEQUENCE {
       entry LDAPDN,
       attrs SEQUENCE OF SEQUENCE {
         type AttributeType,
         values SET OF AttributeValue
       }
     }
     
    Version:
    1.0
    • Field Detail

      • m_dn

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

      • JDAPAddRequest

        public JDAPAddRequest​(java.lang.String dn,
                              LDAPAttribute[] attrs)
        Constructs add request.
        Parameters:
        dn - distinguished name of adding entry
        attrs - list of attribute associated with entry
    • Method Detail

      • getType

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

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

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

        public BERElement getBERElement()
        Gets the ber representation of add request.
        Specified by:
        getBERElement in interface JDAPProtocolOp
        Returns:
        ber representation of request
      • getParamString

        public java.lang.String getParamString()
        Retrieves the string representation of add request parameters.
        Returns:
        string representation of add request parameters
      • toString

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