|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.ldap.model.message.AbstractMessage
org.apache.directory.api.ldap.model.message.AbstractRequest
org.apache.directory.api.ldap.model.message.AbstractAbandonableRequest
org.apache.directory.api.ldap.model.message.AddRequestImpl
public class AddRequestImpl
Lockable add request implementation.
| Field Summary |
|---|
| Fields inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage |
|---|
controls |
| Fields inherited from interface org.apache.directory.api.ldap.model.message.AddRequest |
|---|
RESP_TYPE, TYPE |
| Constructor Summary | |
|---|---|
AddRequestImpl()
Creates an AddRequest implementation to create a new entry. |
|
| Method Summary | |
|---|---|
AddRequest |
addAllControls(Control[] controls)
Adds an array of controls to this Message. |
void |
addAttributeType(String type)
Create a new attributeValue |
void |
addAttributeValue(byte[] value)
Add a new value to the current attribute |
void |
addAttributeValue(String value)
Add a new value to the current attribute |
void |
addAttributeValue(Value<?> value)
Add a new value to the current attribute |
AddRequest |
addControl(Control control)
Adds a control to this Message. |
boolean |
equals(Object obj)
Checks to see if an object is equivalent to this AddRequest. |
String |
getCurrentAttributeType()
|
Entry |
getEntry()
Gets the entry to add. |
Dn |
getEntryDn()
Gets the distinguished name of the entry to add. |
MessageTypeEnum |
getResponseType()
Gets the protocol response message type for this request which produces at least one response. |
AddResponse |
getResultResponse()
The result containing response for this request. |
int |
hashCode()
|
AddRequest |
removeControl(Control control)
Deletes a control removing it from this Message. |
AddRequest |
setEntry(Entry entry)
Sets the Entry to add. |
AddRequest |
setEntryDn(Dn dn)
Sets the distinguished name of the entry to add. |
AddRequest |
setMessageId(int messageId)
Sets the Message ID for this request |
String |
toString()
|
| Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractAbandonableRequest |
|---|
abandon, addAbandonListener, isAbandoned |
| Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractRequest |
|---|
hasResponse |
| Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage |
|---|
get, getControl, getControls, getMessageId, getType, hasControl, put, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.Request |
|---|
hasResponse |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.Message |
|---|
get, getControl, getControls, getMessageId, getType, hasControl, put |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.AbandonableRequest |
|---|
abandon, addAbandonListener, isAbandoned |
| Constructor Detail |
|---|
public AddRequestImpl()
| Method Detail |
|---|
public void addAttributeType(String type)
throws LdapException
type - The attribute's name (called 'type' in the grammar)
LdapExceptionpublic String getCurrentAttributeType()
public void addAttributeValue(String value)
throws LdapException
value - The value to add
LdapException
public void addAttributeValue(Value<?> value)
throws LdapException
value - The value to add
LdapException
public void addAttributeValue(byte[] value)
throws LdapException
value - The value to add
LdapExceptionpublic Dn getEntryDn()
getEntryDn in interface AddRequestpublic AddRequest setEntryDn(Dn dn)
setEntryDn in interface AddRequestdn - the Dn of the added entry.
public Entry getEntry()
getEntry in interface AddRequestpublic AddRequest setEntry(Entry entry)
setEntry in interface AddRequestentry - the added Entry
public AddRequest setMessageId(int messageId)
setMessageId in interface AddRequestsetMessageId in interface MessagesetMessageId in class AbstractMessagemessageId - The message Id
public AddRequest addControl(Control control)
throws MessageException
addControl in interface AddRequestaddControl in interface MessageaddControl in class AbstractMessagecontrol - the control to add.
MessageException - if controls cannot be added to this Message or the control is
not known etc.
public AddRequest addAllControls(Control[] controls)
throws MessageException
addAllControls in interface AddRequestaddAllControls in interface MessageaddAllControls in class AbstractMessagecontrols - the controls to add.
MessageException - if controls cannot be added to this Message or they are not known etc.
public AddRequest removeControl(Control control)
throws MessageException
removeControl in interface AddRequestremoveControl in interface MessageremoveControl in class AbstractMessagecontrol - the control to remove.
MessageException - if controls cannot be added to this Message or the control is
not known etc.public MessageTypeEnum getResponseType()
getResponseType in interface SingleReplyRequest<AddResponse>public AddResponse getResultResponse()
getResultResponse in interface ResultResponseRequest<AddResponse>public boolean equals(Object obj)
equals in class AbstractRequestobj - the object to test for equality to this
public int hashCode()
hashCode in class AbstractRequestObject.hashCode()public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||