public class SearchResultEntryDsml extends AbstractResponseDsml<SearchResultEntry> implements SearchResultEntry
| Constructor and Description |
|---|
SearchResultEntryDsml(LdapApiService codec)
Creates a new getDecoratedMessage() of SearchResultEntryDsml.
|
SearchResultEntryDsml(LdapApiService codec,
SearchResultEntry ldapMessage)
Creates a new getDecoratedMessage() of SearchResultEntryDsml.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(String type)
Create a new attribute
|
void |
addAttributeValue(Object value)
Add a new value to the current attribute
|
Attribute |
getCurrentAttribute() |
Entry |
getEntry()
Get the entry.
|
Dn |
getObjectName()
Get the entry Dn
|
MessageTypeEnum |
getType()
Gets the LDAP message type code associated with this Message.
|
void |
setEntry(Entry entry)
Initialize the entry.
|
void |
setObjectName(Dn objectName)
Set the entry Dn
|
org.dom4j.Element |
toDsml(org.dom4j.Element root)
Converts the request/reponse to its XML representation in the DSMLv2 format
|
addAllControls, addControl, get, getCodecService, getControl, getControls, getCurrentControl, getDecorated, getMessageId, hasControl, put, removeControl, setMessageIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAllControls, addControl, get, getControl, getControls, getMessageId, hasControl, put, removeControl, setMessageIdpublic SearchResultEntryDsml(LdapApiService codec)
public SearchResultEntryDsml(LdapApiService codec, SearchResultEntry ldapMessage)
ldapMessage - the message to decoratepublic Attribute getCurrentAttribute()
public void addAttribute(String type) throws LdapException
type - The attribute's typeLdapExceptionpublic void addAttributeValue(Object value) throws LdapException
value - The added valueLdapExceptionpublic MessageTypeEnum getType()
getType in interface MessagegetType in class AbstractDsmlMessageDecorator<SearchResultEntry>public org.dom4j.Element toDsml(org.dom4j.Element root)
toDsml in interface DsmlDecorator<SearchResultEntry>root - the root dom4j Elementpublic Dn getObjectName()
getObjectName in interface SearchResultEntrypublic void setObjectName(Dn objectName)
setObjectName in interface SearchResultEntryobjectName - The objectName to set.public Entry getEntry()
getEntry in interface SearchResultEntrypublic void setEntry(Entry entry)
setEntry in interface SearchResultEntryentry - the entryCopyright © 2021. All rights reserved.