org.ldaptive
Class AddRequest

java.lang.Object
  extended by org.ldaptive.AbstractRequest
      extended by org.ldaptive.AddRequest
All Implemented Interfaces:
Message<RequestControl>, Request

public class AddRequest
extends AbstractRequest

Contains the data required to perform an ldap add operation.

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services

Constructor Summary
AddRequest()
          Default constructor.
AddRequest(String dn, Collection<LdapAttribute> attrs)
          Creates a new add request.
 
Method Summary
 String getDn()
          Returns the DN to create.
 Collection<LdapAttribute> getLdapAttributes()
          Returns the attributes to add.
 void setDn(String dn)
          Sets the DN to create.
 void setLdapAttributes(Collection<LdapAttribute> attrs)
          Sets the attributes to add.
 String toString()
          
 
Methods inherited from class org.ldaptive.AbstractRequest
getControls, getFollowReferrals, getIntermediateResponseHandlers, setControls, setFollowReferrals, setIntermediateResponseHandlers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AddRequest

public AddRequest()
Default constructor.


AddRequest

public AddRequest(String dn,
                  Collection<LdapAttribute> attrs)
Creates a new add request.

Parameters:
dn - to create
attrs - attributes to add
Method Detail

getDn

public String getDn()
Returns the DN to create.

Returns:
DN

setDn

public void setDn(String dn)
Sets the DN to create.

Parameters:
dn - to create

getLdapAttributes

public Collection<LdapAttribute> getLdapAttributes()
Returns the attributes to add.

Returns:
attributes

setLdapAttributes

public void setLdapAttributes(Collection<LdapAttribute> attrs)
Sets the attributes to add.

Parameters:
attrs - to add

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2003-2015 Virginia Tech. All Rights Reserved.