public class AddRequestImpl extends AbstractAbandonableRequest implements AddRequest
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, isAbandoned
hasResponse
get, getControl, getControls, getMessageId, getType, hasControl, put, toString
hasResponse
get, getControl, getControls, getMessageId, getType, hasControl, put
abandon, addAbandonListener, isAbandoned
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 AddRequest
public AddRequest setEntryDn(Dn dn)
setEntryDn
in interface AddRequest
dn
- the Dn of the added entry.public Entry getEntry()
getEntry
in interface AddRequest
public AddRequest setEntry(Entry entry)
setEntry
in interface AddRequest
entry
- the added Entrypublic AddRequest setMessageId(int messageId)
setMessageId
in interface AddRequest
setMessageId
in interface Message
setMessageId
in class AbstractMessage
messageId
- The message Idpublic AddRequest addControl(Control control)
addControl
in interface AddRequest
addControl
in interface Message
addControl
in class AbstractMessage
control
- the control to add.public AddRequest addAllControls(Control[] controls)
addAllControls
in interface AddRequest
addAllControls
in interface Message
addAllControls
in class AbstractMessage
controls
- the controls to add.public AddRequest removeControl(Control control)
removeControl
in interface AddRequest
removeControl
in interface Message
removeControl
in class AbstractMessage
control
- the control to remove.public MessageTypeEnum getResponseType()
getResponseType
in interface SingleReplyRequest
public AddResponse getResultResponse()
getResultResponse
in interface ResultResponseRequest
public boolean equals(Object obj)
equals
in class AbstractRequest
obj
- the object to test for equality to thispublic int hashCode()
hashCode
in class AbstractRequest
Object.hashCode()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2003–2018 The Apache Software Foundation. All rights reserved.