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, isAbandonedhasResponseget, getCodecService, getControl, getControls, getCurrentControl, getDecorated, getMessageId, hasControl, putclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetResultResponsehasResponseget, getControl, getControls, getMessageId, hasControl, putabandon, addAbandonListener, isAbandonedpublic 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)LdapExceptionpublic String getCurrentAttributeType()
public void addAttributeValue(String value) throws LdapException
value - The value to addLdapExceptionpublic void addAttributeValue(Value<?> value) throws LdapException
value - The value to addLdapExceptionpublic void addAttributeValue(byte[] value)
throws LdapException
value - The value to addLdapExceptionpublic MessageTypeEnum getType()
getType in interface MessagegetType 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 AddRequestpublic void addAttributeValue(Object value) throws LdapException
value - The value to be addedLdapExceptionpublic Dn getEntryDn()
getEntryDn in interface AddRequestpublic AddRequest setEntryDn(Dn entryDn)
setEntryDn in interface AddRequestentryDn - the Dn of the added entry.public AddRequest setEntry(Entry entry)
setEntry in interface AddRequestentry - the added Entrypublic AddRequest setMessageId(int messageId)
setMessageId in interface AddRequestsetMessageId in interface MessagesetMessageId in class AbstractDsmlMessageDecorator<AddRequest>messageId - The message Idpublic AddRequest addControl(Control control)
addControl in interface AddRequestaddControl in interface MessageaddControl in class AbstractDsmlMessageDecorator<AddRequest>control - the control to add.public AddRequest addAllControls(Control[] controls)
addAllControls in interface AddRequestaddAllControls in interface MessageaddAllControls in class AbstractDsmlMessageDecorator<AddRequest>controls - the controls to add.public AddRequest removeControl(Control control)
removeControl in interface AddRequestremoveControl in interface MessageremoveControl in class AbstractDsmlMessageDecorator<AddRequest>control - the control to remove.public MessageTypeEnum getResponseType()
getResponseType in interface SingleReplyRequestCopyright © 2021. All rights reserved.