public class LdapResultImpl extends Object implements LdapResult
| Constructor and Description |
|---|
LdapResultImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getDiagnosticMessage()
Gets the descriptive diagnostic message associated with the error code.
|
Dn |
getMatchedDn()
Gets the lowest entry in the directory that was matched.
|
Referral |
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.
|
int |
hashCode() |
boolean |
isDefaultSuccess()
Tells if the LdapResult is a success, with no added information.
|
boolean |
isReferral()
Gets whether or not this result represents a Referral.
|
void |
setDiagnosticMessage(String diagnosticMessage)
Sets the descriptive diagnostic message associated with the error code.
|
void |
setMatchedDn(Dn matchedDn)
Sets the lowest entry in the directory that was matched.
|
void |
setReferral(Referral 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 getDiagnosticMessage()
getDiagnosticMessage in interface LdapResultpublic void setDiagnosticMessage(String diagnosticMessage)
setDiagnosticMessage in interface LdapResultdiagnosticMessage - the descriptive diagnostic message.public Dn getMatchedDn()
getMatchedDn in interface LdapResultpublic void setMatchedDn(Dn matchedDn)
setMatchedDn in interface LdapResultmatchedDn - the Dn of the lowest matched entry.LdapResult.getMatchedDn()public ResultCodeEnum getResultCode()
getResultCode in interface LdapResultpublic void setResultCode(ResultCodeEnum resultCode)
setResultCode in interface LdapResultresultCode - the result code enum value.public Referral getReferral()
getReferral in interface LdapResultpublic boolean isReferral()
isReferral in interface LdapResultpublic void setReferral(Referral referral)
setReferral in interface LdapResultreferral - optional referral on REFERRAL errors.public boolean isDefaultSuccess()
isDefaultSuccess in interface LdapResultpublic int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.