public class AddRequestDsml extends AbstractRequestDsml
instance
ldapMessageLength
parent
Constructor and Description |
---|
AddRequestDsml()
Creates a new instance of AddRequestDsml.
|
AddRequestDsml(AddRequestCodec ldapMessage)
Creates a new instance of AddRequestDsml.
|
Modifier and Type | Method and Description |
---|---|
void |
addAttributeType(String type)
Create a new attributeValue
|
void |
addAttributeValue(Object value)
Add a new value to the current attribute
|
String |
getCurrentAttributeType() |
Entry |
getEntry()
Get the entry with its attributes.
|
DN |
getEntryDn()
Get the added DN
|
MessageTypeEnum |
getMessageType()
Get the message type
|
void |
initEntry()
Initialize the Entry.
|
void |
setEntry(Entry entry)
Sets the entry.
|
void |
setEntryDn(DN entryDn)
Set the added DN.
|
org.dom4j.Element |
toDsml(org.dom4j.Element root)
Creates the Request Element and adds RequestID and Controls.
|
addControl, addLength, computeLength, computeLengthProtocolOp, encode, encodeProtocolOp, getAbandonRequest, getAddRequest, getAddResponse, getBindRequest, getBindResponse, getCompareRequest, getCompareResponse, getControls, getControls, getCurrentControl, getCurrentLength, getDelRequest, getDelResponse, getExpectedLength, getExtendedRequest, getExtendedResponse, getLdapResponse, getMessageId, getMessageTypeName, getModifyDNRequest, getModifyDNResponse, getModifyRequest, getModifyResponse, getParent, getSearchRequest, getSearchResultDone, getSearchResultEntry, getSearchResultReference, getUnBindRequest, setCurrentLength, setExpectedLength, setMessageId, setParent, toString
addControls, encode, getCodecControl, initControls, toString
getTlvId
public AddRequestDsml()
public AddRequestDsml(AddRequestCodec ldapMessage)
ldapMessage
- the message to decoratepublic MessageTypeEnum getMessageType()
getMessageType
in class LdapMessageDecorator
public org.dom4j.Element toDsml(org.dom4j.Element root)
toDsml
in interface DsmlDecorator
toDsml
in class AbstractRequestDsml
root
- the root elementpublic void initEntry()
public Entry getEntry()
public void addAttributeType(String type) throws LdapException
type
- The attribute's name (called 'type' in the grammar)LdapException
public void addAttributeValue(Object value)
value
- The value to be addedpublic DN getEntryDn()
public void setEntryDn(DN entryDn)
entry
- The entry DN to set.public void setEntry(Entry entry)
entry
- the entrypublic String getCurrentAttributeType()
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.