public class AddRequestDsml extends AbstractResultResponseRequestDsml<AddRequest,AddResponse> implements AddRequest
Constructor and Description |
---|
AddRequestDsml(LdapApiService codec)
Creates a new getDecoratedMessage() of AddRequestDsml.
|
AddRequestDsml(LdapApiService codec,
AddRequest ldapMessage)
Creates a new getDecoratedMessage() of AddRequestDsml.
|
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(Object 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.
|
String |
getCurrentAttributeType() |
Entry |
getEntry()
Get the entry with its attributes.
|
Dn |
getEntryDn()
Get the added Dn
|
MessageTypeEnum |
getResponseType()
Gets the protocol response message type for this request which produces
at least one response.
|
MessageTypeEnum |
getType()
Gets the LDAP message type code associated with this Message.
|
void |
initEntry()
Initialize the Entry.
|
AddRequest |
removeControl(Control control)
Deletes a control removing it from this Message.
|
AddRequest |
setEntry(Entry entry)
Sets the Entry to add.
|
AddRequest |
setEntryDn(Dn entryDn)
Sets the distinguished name of the entry to add.
|
AddRequest |
setMessageId(int messageId)
Sets the Message ID for this request
|
org.dom4j.Element |
toDsml(org.dom4j.Element root)
Creates the Request Element and adds RequestID and Controls.
|
abandon, addAbandonListener, computeLength, encode, getResultResponse, isAbandoned
hasResponse
get, getCodecService, getControl, getControls, getCurrentControl, getDecorated, getMessageId, hasControl, put
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getResultResponse
hasResponse
get, getControl, getControls, getMessageId, hasControl, put
abandon, addAbandonListener, isAbandoned
public AddRequestDsml(LdapApiService codec)
public AddRequestDsml(LdapApiService codec, AddRequest ldapMessage)
ldapMessage
- the message to decoratepublic void addAttributeType(String type) throws LdapException
type
- The attribute's name (called 'type' in the grammar)LdapException
public String getCurrentAttributeType()
public void addAttributeValue(String value) throws LdapException
value
- The value to addLdapException
public void addAttributeValue(Value<?> value) throws LdapException
value
- The value to addLdapException
public void addAttributeValue(byte[] value) throws LdapException
value
- The value to addLdapException
public MessageTypeEnum getType()
getType
in interface Message
getType
in class AbstractDsmlMessageDecorator<AddRequest>
public org.dom4j.Element toDsml(org.dom4j.Element root)
toDsml
in interface DsmlDecorator<AddRequest>
toDsml
in class AbstractResultResponseRequestDsml<AddRequest,AddResponse>
root
- the root elementpublic void initEntry()
public Entry getEntry()
getEntry
in interface AddRequest
public void addAttributeValue(Object value) throws LdapException
value
- The value to be addedLdapException
public Dn getEntryDn()
getEntryDn
in interface AddRequest
public AddRequest setEntryDn(Dn entryDn)
setEntryDn
in interface AddRequest
entryDn
- the Dn of the added entry.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 AbstractDsmlMessageDecorator<AddRequest>
messageId
- The message Idpublic AddRequest addControl(Control control)
addControl
in interface AddRequest
addControl
in interface Message
addControl
in class AbstractDsmlMessageDecorator<AddRequest>
control
- the control to add.public AddRequest addAllControls(Control[] controls)
addAllControls
in interface AddRequest
addAllControls
in interface Message
addAllControls
in class AbstractDsmlMessageDecorator<AddRequest>
controls
- the controls to add.public AddRequest removeControl(Control control)
removeControl
in interface AddRequest
removeControl
in interface Message
removeControl
in class AbstractDsmlMessageDecorator<AddRequest>
control
- the control to remove.public MessageTypeEnum getResponseType()
getResponseType
in interface SingleReplyRequest
Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.