Package org.ldaptive

Class AbstractResult

    • Field Detail

      • resultCode

        private ResultCode resultCode
        Result code.
      • matchedDN

        private String matchedDN
        Matched DN.
      • diagnosticMessage

        private String diagnosticMessage
        Diagnostic message.
      • referralURLs

        private List<String> referralURLs
        Referral URLS.
    • Constructor Detail

      • AbstractResult

        public AbstractResult()
    • Method Detail

      • getResultCode

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

        public void setResultCode​(ResultCode code)
      • getMatchedDN

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

        public void setMatchedDN​(String dn)
      • getDiagnosticMessage

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

        public void setDiagnosticMessage​(String message)
      • getReferralURLs

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

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

        protected <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