org.apache.directory.shared.ldap.message
Interface AddRequest

All Superinterfaces:
AbandonableRequest, Message, Request, ResultResponseRequest, SingleReplyRequest
All Known Implementing Classes:
AddRequestImpl

public interface AddRequest
extends SingleReplyRequest, AbandonableRequest

Add protocol operation request used to add a new entry to the DIT.

Version:
$Revision: 379008 $
Author:
Alex Karasulu, $Author: akarasulu $

Field Summary
static MessageTypeEnum RESP_TYPE
          LDAPv3 add response type enum code
static MessageTypeEnum TYPE
          LDAPv3 add request type enum code
 
Method Summary
 javax.naming.directory.Attributes getAttributes()
          Gets the attributes of the entry to add.
 java.lang.String getEntry()
          Gets the distinguished name of the entry to add.
 void setAttributes(javax.naming.directory.Attributes attributes)
          Sets the attribute value pairs of the entry to add.
 void setEntry(java.lang.String entry)
          Sets the distinguished name of the entry to add.
 
Methods inherited from interface org.apache.directory.shared.ldap.message.SingleReplyRequest
getResponseType
 
Methods inherited from interface org.apache.directory.shared.ldap.message.ResultResponseRequest
getResultResponse
 
Methods inherited from interface org.apache.directory.shared.ldap.message.Request
hasResponse
 
Methods inherited from interface org.apache.directory.shared.ldap.message.Message
add, get, getControls, getMessageId, getType, put, remove
 
Methods inherited from interface org.apache.directory.shared.ldap.message.AbandonableRequest
abandon, addAbandonListener, isAbandoned
 

Field Detail

TYPE

public static final MessageTypeEnum TYPE
LDAPv3 add request type enum code


RESP_TYPE

public static final MessageTypeEnum RESP_TYPE
LDAPv3 add response type enum code

Method Detail

getEntry

public java.lang.String getEntry()
Gets the distinguished name of the entry to add.

Returns:
the Dn of the added entry.

setEntry

public void setEntry(java.lang.String entry)
Sets the distinguished name of the entry to add.

Parameters:
entry - the Dn of the added entry.

getAttributes

public javax.naming.directory.Attributes getAttributes()
Gets the attributes of the entry to add.

Returns:
the Attributes containing attribute value pairs.

setAttributes

public void setAttributes(javax.naming.directory.Attributes attributes)
Sets the attribute value pairs of the entry to add.

Parameters:
attributes - the Attributes with attribute value pairs for the added entry.


Copyright © 2003-2006 . All Rights Reserved.