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 LdapResultImpl()
public String getDiagnosticMessage()
getDiagnosticMessage
in interface LdapResult
public void setDiagnosticMessage(String diagnosticMessage)
setDiagnosticMessage
in interface LdapResult
diagnosticMessage
- the descriptive diagnostic message.public Dn getMatchedDn()
getMatchedDn
in interface LdapResult
public void setMatchedDn(Dn matchedDn)
setMatchedDn
in interface LdapResult
matchedDn
- the Dn of the lowest matched entry.LdapResult.getMatchedDn()
public ResultCodeEnum getResultCode()
getResultCode
in interface LdapResult
public void setResultCode(ResultCodeEnum resultCode)
setResultCode
in interface LdapResult
resultCode
- the result code enum value.public Referral getReferral()
getReferral
in interface LdapResult
public boolean isReferral()
isReferral
in interface LdapResult
public void setReferral(Referral referral)
setReferral
in interface LdapResult
referral
- optional referral on REFERRAL errors.public boolean isDefaultSuccess()
isDefaultSuccess
in interface LdapResult
public int hashCode()
hashCode
in class Object
Object.hashCode()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.