Package org.ldaptive
Interface Result
-
- All Superinterfaces:
Message
- All Known Implementing Classes:
AbstractResult,AddResponse,AuthenticationHandlerResponse,AuthenticationResponse,BindResponse,CompareResponse,DeleteResponse,ExtendedResponse,ModifyDnResponse,ModifyResponse,NoticeOfDisconnection,SearchResponse,UnsolicitedNotification
public interface Result extends Message
LDAP protocol result.
-
-
Field Summary
Fields Modifier and Type Field Description static booleanENCODE_CNTRL_CHARSWhether to encode control characters.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringgetDiagnosticMessage()Returns the diagnostic message.default StringgetEncodedDiagnosticMessage()Returns the diagnostic message percent encoded ifENCODE_CNTRL_CHARSis true.StringgetMatchedDN()Returns the matched DN.String[]getReferralURLs()Returns the referral URLs.ResultCodegetResultCode()Returns the result code.default booleanisSuccess()Returns whether the result code in this result isResultCode.SUCCESS.-
Methods inherited from interface org.ldaptive.Message
getControl, getControls, getMessageID
-
-
-
-
Method Detail
-
getResultCode
ResultCode getResultCode()
Returns the result code.- Returns:
- result code
-
getMatchedDN
String getMatchedDN()
Returns the matched DN.- Returns:
- matched DN
-
getDiagnosticMessage
String getDiagnosticMessage()
Returns the diagnostic message.- Returns:
- diagnostic message
-
getReferralURLs
String[] getReferralURLs()
Returns the referral URLs.- Returns:
- referral URLs
-
isSuccess
default boolean isSuccess()
Returns whether the result code in this result isResultCode.SUCCESS.- Returns:
- whether this result is success
-
getEncodedDiagnosticMessage
default String getEncodedDiagnosticMessage()
Returns the diagnostic message percent encoded ifENCODE_CNTRL_CHARSis true. SeeLdapUtils.percentEncodeControlChars(String).- Returns:
- encoded message
-
-