Package org.ldaptive
Class AbstractResult
java.lang.Object
org.ldaptive.AbstractMessage
org.ldaptive.AbstractResult
- Direct Known Subclasses:
AddResponse,AuthenticationHandlerResponse,AuthenticationResponse,BindResponse,CompareResponse,DeleteResponse,ExtendedResponse,ModifyDnResponse,ModifyResponse,SearchResponse
LDAP result message defined as:
LDAPResult ::= SEQUENCE {
resultCode ENUMERATED {
... },
matchedDN LDAPDN,
diagnosticMessage LDAPString,
referral [3] Referral OPTIONAL }
Referral ::= SEQUENCE SIZE (1..MAX) OF uri URI
URI ::= LDAPString -- limited to characters permitted in
-- URIs
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classAbstractResult.AbstractBuilder<B,T extends AbstractResult> protected static classParse handler implementation for the LDAP diagnostic message.protected static classParse handler implementation for the LDAP matched DN.protected static classParse handler implementation for the LDAP referral.protected static classParse handler implementation for the LDAP result code.Nested classes/interfaces inherited from class org.ldaptive.AbstractMessage
AbstractMessage.ControlParser, AbstractMessage.ControlsHandler, AbstractMessage.MessageIDHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringDiagnostic message.private StringMatched DN.Referral URLS.private ResultCodeResult code.Fields inherited from interface org.ldaptive.Result
ENCODE_CNTRL_CHARS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddReferralURLs(String... urls) Adds referral URLs to the result.protected <T extends Result>
voidcopyValues(T result) Copies the property values from the supplied result to this result.booleanReturns the diagnostic message.Returns the matched DN.String[]Returns the referral URLs.Returns the result code.voidsetDiagnosticMessage(String message) voidsetMatchedDN(String dn) voidsetResultCode(ResultCode code) toString()Methods inherited from class org.ldaptive.AbstractMessage
addControls, copyValues, getControls, getMessageID, hashCode, setMessageIDMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ldaptive.Message
getControl, getControls, getMessageIDMethods inherited from interface org.ldaptive.Result
getEncodedDiagnosticMessage, isSuccess
-
Field Details
-
resultCode
Result code. -
matchedDN
Matched DN. -
diagnosticMessage
Diagnostic message. -
referralURLs
Referral URLS.
-
-
Constructor Details
-
AbstractResult
public AbstractResult()
-
-
Method Details
-
getResultCode
Description copied from interface:ResultReturns the result code.- Specified by:
getResultCodein interfaceResult- Returns:
- result code
-
setResultCode
-
getMatchedDN
Description copied from interface:ResultReturns the matched DN.- Specified by:
getMatchedDNin interfaceResult- Returns:
- matched DN
-
setMatchedDN
-
getDiagnosticMessage
Description copied from interface:ResultReturns the diagnostic message.- Specified by:
getDiagnosticMessagein interfaceResult- Returns:
- diagnostic message
-
setDiagnosticMessage
-
getReferralURLs
Description copied from interface:ResultReturns the referral URLs.- Specified by:
getReferralURLsin interfaceResult- Returns:
- referral URLs
-
addReferralURLs
Adds referral URLs to the result.- Parameters:
urls- to add
-
copyValues
Copies the property values from the supplied result to this result.- Type Parameters:
T- type of result- Parameters:
result- to copy from
-
equals
- Overrides:
equalsin classAbstractMessage
-
toString
- Overrides:
toStringin classAbstractMessage
-