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, setMessageId
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAllControls, addControl, get, getControl, getControls, getMessageId, hasControl, put, removeControl, setMessageId
public SearchResultEntryDsml(LdapApiService codec)
codec
- The LDAP Service to usepublic SearchResultEntryDsml(LdapApiService codec, SearchResultEntry ldapMessage)
codec
- The LDAP Service to useldapMessage
- the message to decoratepublic Attribute getCurrentAttribute()
public void addAttribute(String type) throws LdapException
type
- The attribute's typeLdapException
- If we can't add the new attributeTypepublic void addAttributeValue(Object value) throws LdapException
value
- The added valueLdapException
- If we can't add the new attributeTypepublic MessageTypeEnum getType()
getType
in interface Message
getType
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 SearchResultEntry
public void setObjectName(Dn objectName)
setObjectName
in interface SearchResultEntry
objectName
- The objectName to set.public Entry getEntry()
getEntry
in interface SearchResultEntry
public void setEntry(Entry entry)
setEntry
in interface SearchResultEntry
entry
- the entryCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.