Class SearchResultReferenceImpl

All Implemented Interfaces:
Message, Response, SearchResultReference

public class SearchResultReferenceImpl extends AbstractResponse implements SearchResultReference
SearchResponseReference implementation
Author:
Apache Directory Project
  • Constructor Details

    • SearchResultReferenceImpl

      public SearchResultReferenceImpl()
      Creates a SearchResponseReference as a reply to an SearchRequest to indicate the end of a search operation.
    • SearchResultReferenceImpl

      public SearchResultReferenceImpl(int id)
      Creates a SearchResponseReference as a reply to an SearchRequest to indicate the end of a search operation.
      Parameters:
      id - the session unique message id
  • Method Details

    • getReferral

      public Referral getReferral()
      Gets the sequence of LdapUrls as a Referral instance.
      Specified by:
      getReferral in interface SearchResultReference
      Returns:
      the sequence of LdapUrls
    • setReferral

      public void setReferral(Referral referral)
      Sets the sequence of LdapUrls as a Referral instance.
      Specified by:
      setReferral in interface SearchResultReference
      Parameters:
      referral - the sequence of LdapUrls
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class AbstractMessage
      Returns:
      the instance's hash code
      See Also:
    • equals

      public boolean equals(Object obj)
      Checks to see if an object is equal to this SearchResponseReference stub.
      Overrides:
      equals in class AbstractMessage
      Parameters:
      obj - the object to compare to this response stub
      Returns:
      true if the objects are equivalent false otherwise
    • toString

      public String toString()
      Returns the Search Result Reference string
      Overrides:
      toString in class Object
      Returns:
      The Search Result Reference string