Package org.ldaptive

Class AddRequest

  • All Implemented Interfaces:
    Request

    public class AddRequest
    extends AbstractRequestMessage
    LDAP add request defined as:
       AddRequest ::= [APPLICATION 8] SEQUENCE {
         entry           LDAPDN,
         attributes      AttributeList }
    
       AttributeList ::= SEQUENCE OF attribute Attribute
     
    • Field Detail

      • ldapDn

        private String ldapDn
        LDAP DN to add.
      • attributes

        private LdapAttribute[] attributes
        Attributes to add to the entry.
    • Constructor Detail

      • AddRequest

        private AddRequest()
        Default constructor.
      • AddRequest

        public AddRequest​(String dn,
                          LdapAttribute... attrs)
        Creates a new add request.
        Parameters:
        dn - DN to add
        attrs - to add to the entry
      • AddRequest

        public AddRequest​(String dn,
                          Collection<LdapAttribute> attrs)
        Creates a new add request.
        Parameters:
        dn - DN to add
        attrs - to add to the entry