|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.dsmlv2.reponse.LdapResultDsml
public class LdapResultDsml
DSML Decorator for the LdapResult class.
Constructor Summary | |
---|---|
LdapResultDsml(LdapResultCodec result,
LdapMessageCodec message)
Creates a new instance of LdapResultDsml. |
Method Summary | |
---|---|
void |
addReferral(LdapURL referral)
Add a referral |
java.lang.String |
getErrorMessage()
Get the error message |
java.lang.String |
getMatchedDN()
Get the matched DN |
java.util.List<LdapURL> |
getReferrals()
Get the referrals |
ResultCodeEnum |
getResultCode()
Get the result code |
void |
initReferrals()
Initialize the referrals list |
void |
setErrorMessage(java.lang.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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LdapResultDsml(LdapResultCodec result, LdapMessageCodec message)
result
- the LdapResult to decoratemessage
- the associated messageMethod Detail |
---|
public org.dom4j.Element toDsml(org.dom4j.Element root)
DsmlDecorator
toDsml
in interface DsmlDecorator
root
- the root dom4j Element
public void initReferrals()
public java.lang.String getErrorMessage()
public void setErrorMessage(java.lang.String errorMessage)
errorMessage
- The errorMessage to set.public java.lang.String getMatchedDN()
public void setMatchedDN(DN matchedDN)
matchedDN
- The matchedDN to set.public java.util.List<LdapURL> getReferrals()
public void addReferral(LdapURL referral)
referral
- The referral to add.public ResultCodeEnum getResultCode()
public void setResultCode(ResultCodeEnum resultCode)
resultCode
- The resultCode to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |