Package org.ldaptive
Class AddRequest.Builder
- java.lang.Object
-
- org.ldaptive.AbstractRequestMessage.AbstractBuilder<AddRequest.Builder,AddRequest>
-
- org.ldaptive.AddRequest.Builder
-
- Enclosing class:
- AddRequest
public static class AddRequest.Builder extends AbstractRequestMessage.AbstractBuilder<AddRequest.Builder,AddRequest>
Add request builder.
-
-
Field Summary
-
Fields inherited from class org.ldaptive.AbstractRequestMessage.AbstractBuilder
object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddRequest.Builder
attributes(Collection<LdapAttribute> attrs)
Sets the attributes.AddRequest.Builder
attributes(LdapAttribute... attrs)
Sets the attributes.AddRequest.Builder
dn(String dn)
Sets the ldap DN.protected AddRequest.Builder
self()
Returns this builder.-
Methods inherited from class org.ldaptive.AbstractRequestMessage.AbstractBuilder
build, controls
-
-
-
-
Method Detail
-
self
protected AddRequest.Builder self()
Description copied from class:AbstractRequestMessage.AbstractBuilder
Returns this builder.- Specified by:
self
in classAbstractRequestMessage.AbstractBuilder<AddRequest.Builder,AddRequest>
- Returns:
- builder
-
dn
public AddRequest.Builder dn(String dn)
Sets the ldap DN.- Parameters:
dn
- ldap DN- Returns:
- this builder
-
attributes
public AddRequest.Builder attributes(LdapAttribute... attrs)
Sets the attributes.- Parameters:
attrs
- attributes- Returns:
- this builder
-
attributes
public AddRequest.Builder attributes(Collection<LdapAttribute> attrs)
Sets the attributes.- Parameters:
attrs
- attributes- Returns:
- this builder
-
-