|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.asn1.AbstractAsn1Object
org.apache.directory.shared.ldap.codec.LdapMessageCodec
org.apache.directory.shared.dsmlv2.LdapMessageDecorator
org.apache.directory.shared.dsmlv2.request.LdapRequestDecorator
org.apache.directory.shared.dsmlv2.request.AbstractRequestDsml
org.apache.directory.shared.dsmlv2.request.AddRequestDsml
public class AddRequestDsml
DSML Decorator for AddRequest
Field Summary |
---|
Fields inherited from class org.apache.directory.shared.dsmlv2.LdapMessageDecorator |
---|
instance |
Fields inherited from class org.apache.directory.shared.ldap.codec.LdapMessageCodec |
---|
ldapMessageLength |
Fields inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
---|
parent |
Constructor Summary | |
---|---|
AddRequestDsml()
Creates a new instance of AddRequestDsml. |
|
AddRequestDsml(AddRequestCodec ldapMessage)
Creates a new instance of AddRequestDsml. |
Method Summary | |
---|---|
void |
addAttributeType(java.lang.String type)
Create a new attributeValue |
void |
addAttributeValue(java.lang.Object value)
Add a new value to the current attribute |
java.lang.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. |
Methods inherited from class org.apache.directory.shared.ldap.codec.LdapMessageCodec |
---|
addControls, encode, getCodecControl, initControls, toString |
Methods inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
---|
getTlvId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AddRequestDsml()
public AddRequestDsml(AddRequestCodec ldapMessage)
ldapMessage
- the message to decorateMethod Detail |
---|
public 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 element
public void initEntry()
public Entry getEntry()
public void addAttributeType(java.lang.String type) throws LdapException
type
- The attribute's name (called 'type' in the grammar)
LdapException
public void addAttributeValue(java.lang.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 java.lang.String getCurrentAttributeType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |