|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.ldap.client.api.message.LdapResult
public class LdapResult
LDAPv3 result structure embedded into Responses. See section 4.1.10 in RFC 2251 for a description of the LDAPResult ASN.1 structure, here's a snippet from it:
The LDAPResult is the construct used in this protocol to return success or failure indications from servers to clients. In response to various requests servers will return responses containing fields of type LDAPResult to indicate the final status of a protocol operation request.
Constructor Summary | |
---|---|
LdapResult()
|
Method Summary | |
---|---|
java.lang.String |
getErrorMessage()
Gets the descriptive error message associated with the error code. |
java.lang.String |
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. |
org.apache.directory.shared.ldap.message.ResultCodeEnum |
getResultCode()
Gets the result code enumeration associated with the response. |
boolean |
isReferral()
Gets whether or not this result represents a Referral. |
void |
setErrorMessage(java.lang.String errorMessage)
Sets the descriptive error message associated with the error code. |
void |
setMatchedDn(java.lang.String 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(org.apache.directory.shared.ldap.message.ResultCodeEnum resultCode)
Sets the result code enumeration associated with the response. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LdapResult()
Method Detail |
---|
public java.lang.String getErrorMessage()
public void setErrorMessage(java.lang.String errorMessage)
errorMessage
- the descriptive error message.public java.lang.String getMatchedDn()
public void setMatchedDn(java.lang.String matchedDn)
dn
- the Dn of the lowest matched entry.getMatchedDn()
public org.apache.directory.shared.ldap.message.ResultCodeEnum getResultCode()
public void setResultCode(org.apache.directory.shared.ldap.message.ResultCodeEnum resultCode)
resultCode
- the result code enum value.public Referral getReferral()
public boolean isReferral()
public void setReferral(Referral referral)
referral
- optional referral on REFERRAL errors.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |