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 boolean
ENCODE_CNTRL_CHARS
Whether to encode control characters.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description String
getDiagnosticMessage()
Returns the diagnostic message.default String
getEncodedDiagnosticMessage()
Returns the diagnostic message percent encoded ifENCODE_CNTRL_CHARS
is true.String
getMatchedDN()
Returns the matched DN.String[]
getReferralURLs()
Returns the referral URLs.ResultCode
getResultCode()
Returns the result code.default boolean
isSuccess()
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_CHARS
is true. SeeLdapUtils.percentEncodeControlChars(String)
.- Returns:
- encoded message
-
-