public class AddRequestImpl extends AbstractAbandonableRequest implements AddRequest
AbstractAbandonableRequest.RequestObservable| Modifier and Type | Field and Description |
|---|---|
private Attribute |
currentAttribute
The current attribute being decoded
|
private Entry |
entry
A MultiMap of the new entry's attributes and their values
|
private AddResponse |
response |
(package private) static long |
serialVersionUID |
controls| Constructor and Description |
|---|
AddRequestImpl()
Creates an AddRequest implementation to create a new entry.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
abandon, addAbandonListener, isAbandonedhasResponseget, getControl, getControls, getMessageId, getType, hasControl, put, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waithasResponseget, getControl, getControls, getMessageId, getType, hasControl, putabandon, addAbandonListener, isAbandonedstatic final long serialVersionUID
private Entry entry
private AddResponse response
private Attribute currentAttribute
public AddRequestImpl()
public void addAttributeType(String type) throws LdapException
type - The attribute's name (called 'type' in the grammar)LdapException - If the type can't be addedpublic String getCurrentAttributeType()
public void addAttributeValue(String value) throws LdapException
value - The value to addLdapException - If the value can't be addedpublic void addAttributeValue(Value value) throws LdapException
value - The value to addLdapException - If the value can't be addedpublic void addAttributeValue(byte[] value)
throws LdapException
value - The value to addLdapException - If the value can't be addedpublic 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 Entrypublic AddRequest setMessageId(int messageId)
setMessageId in interface AddRequestsetMessageId in interface MessagesetMessageId in class AbstractMessagemessageId - The message Idpublic AddRequest addControl(Control control)
addControl in interface AddRequestaddControl in interface MessageaddControl in class AbstractMessagecontrol - the control to add.public AddRequest addAllControls(Control[] controls)
addAllControls in interface AddRequestaddAllControls in interface MessageaddAllControls in class AbstractMessagecontrols - the controls to add.public AddRequest removeControl(Control control)
removeControl in interface AddRequestremoveControl in interface MessageremoveControl in class AbstractMessagecontrol - the control to remove.public MessageTypeEnum getResponseType()
getResponseType in interface SingleReplyRequestpublic AddResponse getResultResponse()
getResultResponse in interface ResultResponseRequestpublic boolean equals(Object obj)
equals in class AbstractRequestobj - the object to test for equality to thispublic int hashCode()
hashCode in class AbstractRequestObject.hashCode()public String toString()
toString in class ObjectObject.toString()Copyright © 2003–2022 The Apache Software Foundation. All rights reserved.