Package org.ldaptive

Class SearchReference

    • Field Detail

      • HASH_CODE_SEED

        private static final int HASH_CODE_SEED
        hash code seed.
        See Also:
        Constant Field Values
      • referralUrls

        private final String[] referralUrls
        referral urls.
      • responseControls

        private final ResponseControl[] responseControls
        response controls.
      • messageId

        private final int messageId
        message ID.
      • referenceResponse

        private Response<SearchResult> referenceResponse
        response from following the reference.
    • Constructor Detail

      • SearchReference

        public SearchReference​(int id,
                               ResponseControl[] c,
                               String... url)
        Creates a search reference.
        Parameters:
        id - message id
        c - response controls
        url - referral urls
      • SearchReference

        public SearchReference​(int id,
                               ResponseControl[] c,
                               Collection<String> urls)
        Creates a search reference.
        Parameters:
        id - message id
        c - response controls
        urls - referral urls
    • Method Detail

      • getReferralUrls

        public String[] getReferralUrls()
        Returns the referral urls for this search reference.
        Returns:
        referral urls
      • getControl

        public ResponseControl getControl​(String oid)
        Description copied from interface: ResponseMessage
        Returns the first response control with the supplied OID for this response message.
        Specified by:
        getControl in interface ResponseMessage
        Parameters:
        oid - of the response control to return
        Returns:
        response control or null if control could not be found
      • getMessageId

        public int getMessageId()
        Description copied from interface: ResponseMessage
        Returns the message ID for this response message.
        Specified by:
        getMessageId in interface ResponseMessage
        Returns:
        message id
      • getReferenceResponse

        public Response<SearchResult> getReferenceResponse()
        Returns the response from following the reference.
        Returns:
        reference response or null.
      • setReferenceResponse

        public void setReferenceResponse​(Response<SearchResult> response)
        Sets the response from following the reference.
        Parameters:
        response - from following the reference
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object