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 Details

    • PROTOCOL_OP

      public static final int PROTOCOL_OP
      BER protocol number.
      See Also:
    • ldapDn

      private String ldapDn
      LDAP DN to add.
    • attributes

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

    • 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
  • Method Details