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 InternalLdapResult
public void setErrorMessage(String errorMessage)
setErrorMessage
in interface InternalLdapResult
errorMessage
- the descriptive error message.public DN getMatchedDn()
getMatchedDn
in interface InternalLdapResult
public void setMatchedDn(DN matchedDn)
setMatchedDn
in interface InternalLdapResult
matchedDn
- the Dn of the lowest matched entry.getMatchedDn()
public ResultCodeEnum getResultCode()
getResultCode
in interface InternalLdapResult
public void setResultCode(ResultCodeEnum resultCode)
setResultCode
in interface InternalLdapResult
resultCode
- the result code enum value.public InternalReferral getReferral()
getReferral
in interface InternalLdapResult
public boolean isReferral()
isReferral
in interface InternalLdapResult
public void setReferral(InternalReferral referral)
setReferral
in interface InternalLdapResult
referral
- optional referral on REFERRAL errors.public boolean equals(Object obj)
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.