public class LdapResultImpl extends Object implements InternalLdapResult
| Constructor and Description |
|---|
LdapResultImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getErrorMessage()
Gets the descriptive error message associated with the error code.
|
DN |
getMatchedDn()
Gets the lowest entry in the directory that was matched.
|
InternalReferral |
getReferral()
Gets the Referral associated with this LdapResult if the resultCode
property is set to the REFERRAL ResultCodeEnum.
|
ResultCodeEnum |
getResultCode()
Gets the result code enumeration associated with the response.
|
boolean |
isReferral()
Gets whether or not this result represents a Referral.
|
void |
setErrorMessage(String errorMessage)
Sets the descriptive error message associated with the error code.
|
void |
setMatchedDn(DN matchedDn)
Sets the lowest entry in the directory that was matched.
|
void |
setReferral(InternalReferral referral)
Sets the Referral associated with this LdapResult if the resultCode
property is set to the REFERRAL ResultCodeEnum.
|
void |
setResultCode(ResultCodeEnum resultCode)
Sets the result code enumeration associated with the response.
|
String |
toString()
Get a String representation of a LdapResult
|
public String getErrorMessage()
getErrorMessage in interface InternalLdapResultpublic void setErrorMessage(String errorMessage)
setErrorMessage in interface InternalLdapResulterrorMessage - the descriptive error message.public DN getMatchedDn()
getMatchedDn in interface InternalLdapResultpublic void setMatchedDn(DN matchedDn)
setMatchedDn in interface InternalLdapResultmatchedDn - the Dn of the lowest matched entry.getMatchedDn()public ResultCodeEnum getResultCode()
getResultCode in interface InternalLdapResultpublic void setResultCode(ResultCodeEnum resultCode)
setResultCode in interface InternalLdapResultresultCode - the result code enum value.public InternalReferral getReferral()
getReferral in interface InternalLdapResultpublic boolean isReferral()
isReferral in interface InternalLdapResultpublic void setReferral(InternalReferral referral)
setReferral in interface InternalLdapResultreferral - optional referral on REFERRAL errors.public boolean equals(Object obj)
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.