Package org.opends.server.types
Class SearchResultReference
- java.lang.Object
-
- org.opends.server.types.SearchResultReference
-
@PublicAPI(stability=UNCOMMITTED, mayInstantiate=false, mayExtend=false, mayInvoke=true) public final class SearchResultReference extends Object
This class defines a data structure for storing information about a referral returned while processing a search request.
-
-
Constructor Summary
Constructors Constructor Description SearchResultReference(String referralURL)Creates a new search result reference with the provided referral URL.SearchResultReference(List<String> referralURLs)Creates a new search result reference with the provided set of referral URLs and no controls.SearchResultReference(List<String> referralURLs, List<Control> controls)Creates a new search result reference with the provided set of referral URLs and no controls.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Control>getControls()Retrieves the set of controls to include with this search result reference when it is sent to the client.List<String>getReferralURLs()Retrieves the set of referral URLs for this search result reference.StringgetReferralURLString()Retrieves a string representation of the referral URL(s) for this search result reference.
-
-
-
Constructor Detail
-
SearchResultReference
public SearchResultReference(String referralURL)
Creates a new search result reference with the provided referral URL.- Parameters:
referralURL- The referral URL for this search result reference.
-
SearchResultReference
public SearchResultReference(List<String> referralURLs)
Creates a new search result reference with the provided set of referral URLs and no controls.- Parameters:
referralURLs- The referral URLs for this search result reference.
-
SearchResultReference
public SearchResultReference(List<String> referralURLs, List<Control> controls)
Creates a new search result reference with the provided set of referral URLs and no controls.- Parameters:
referralURLs- The referral URLs for this search result reference.controls- The set of controls for this search result reference.
-
-
Method Detail
-
getReferralURLs
public List<String> getReferralURLs()
Retrieves the set of referral URLs for this search result reference. It may be modified by the caller.- Returns:
- The set of referral URLs for this search result reference.
-
getReferralURLString
public String getReferralURLString()
Retrieves a string representation of the referral URL(s) for this search result reference.- Returns:
- A string representation of the referral URL(s) for this search result reference.
-
-