Package org.ldaptive

Class AbstractResult

    • Field Detail

      • referralURLs

        private final List<String> referralURLs
        Referral URLS.
      • resultCode

        private ResultCode resultCode
        Result code.
      • matchedDN

        private String matchedDN
        Matched DN.
      • diagnosticMessage

        private String diagnosticMessage
        Diagnostic message.
    • Constructor Detail

      • AbstractResult

        public AbstractResult()
    • Method Detail

      • getResultCode

        public final ResultCode getResultCode()
        Returns the result code.
        Specified by:
        getResultCode in interface Result
        Returns:
        result code
      • setResultCode

        protected final void setResultCode​(ResultCode code)
        Sets the result code.
        Parameters:
        code - result code
      • getMatchedDN

        public final String getMatchedDN()
        Returns the matched DN.
        Specified by:
        getMatchedDN in interface Result
        Returns:
        matched DN
      • setMatchedDN

        protected final void setMatchedDN​(String dn)
        Sets the matched DN.
        Parameters:
        dn - matched DN
      • getDiagnosticMessage

        public final String getDiagnosticMessage()
        Returns the diagnostic message.
        Specified by:
        getDiagnosticMessage in interface Result
        Returns:
        diagnostic message
      • setDiagnosticMessage

        protected final void setDiagnosticMessage​(String message)
        Sets the diagnostic message.
        Parameters:
        message - diagnostic message
      • getReferralURLs

        public final String[] getReferralURLs()
        Returns the referral URLs.
        Specified by:
        getReferralURLs in interface Result
        Returns:
        referral URLs
      • addReferralURLs

        protected final void addReferralURLs​(String... urls)
        Adds referral URLs to the result.
        Parameters:
        urls - to add
      • copyValues

        protected final <T extends Result> void copyValues​(T result)
        Copies the property values from the supplied result to this result.
        Type Parameters:
        T - type of result
        Parameters:
        result - to copy from
      • equalsResult

        public final boolean equalsResult​(Result result)
        Returns whether the base properties of this result are equal. Those include message ID, controls, result code, matched DN, diagnostic message and referral URLs.
        Parameters:
        result - to compare
        Returns:
        whether result properties are equal