public class LdapResultDsml extends Object implements DsmlDecorator
Constructor and Description |
---|
LdapResultDsml(LdapResultCodec result,
LdapMessageCodec message)
Creates a new instance of LdapResultDsml.
|
Modifier and Type | Method and Description |
---|---|
void |
addReferral(LdapURL referral)
Add a referral
|
String |
getErrorMessage()
Get the error message
|
String |
getMatchedDN()
Get the matched DN
|
List<LdapURL> |
getReferrals()
Get the referrals
|
ResultCodeEnum |
getResultCode()
Get the result code
|
void |
initReferrals()
Initialize the referrals list
|
void |
setErrorMessage(String errorMessage)
Set the error message
|
void |
setMatchedDN(DN matchedDN)
Set the Matched DN
|
void |
setResultCode(ResultCodeEnum resultCode)
Set the result code
|
org.dom4j.Element |
toDsml(org.dom4j.Element root)
Converts the request/reponse to its XML representation in the DSMLv2 format
|
public LdapResultDsml(LdapResultCodec result, LdapMessageCodec message)
result
- the LdapResult to decoratemessage
- the associated messagepublic org.dom4j.Element toDsml(org.dom4j.Element root)
DsmlDecorator
toDsml
in interface DsmlDecorator
root
- the root dom4j Elementpublic void initReferrals()
public String getErrorMessage()
public void setErrorMessage(String errorMessage)
errorMessage
- The errorMessage to set.public String getMatchedDN()
public void setMatchedDN(DN matchedDN)
matchedDN
- The matchedDN to set.public void addReferral(LdapURL referral)
referral
- The referral to add.public ResultCodeEnum getResultCode()
public void setResultCode(ResultCodeEnum resultCode)
resultCode
- The resultCode to set.Copyright © 2003–2013 The Apache Software Foundation. All rights reserved.