|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.ldap.model.message.LdapResultImpl
public class LdapResultImpl
The LdapResult implementation. RFC 4511 definition for a LdapResult is given below.
| Constructor Summary | |
|---|---|
LdapResultImpl()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LdapResultImpl()
| Method Detail |
|---|
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)
equals in class Objectobj - The object to compare with
true if both objects are equalspublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||