Class SearchRequest

java.lang.Object
org.apache.maven.search.SearchRequest

public final class SearchRequest extends Object
A search request to perform search: defines paging and query.
  • Constructor Details

    • SearchRequest

      public SearchRequest(Query query)
      Creates a request with given Query instance and default page size of 50.
    • SearchRequest

      public SearchRequest(Paging paging, Query query)
      Creates a request with given Query and Paging.
  • Method Details

    • getPaging

      public Paging getPaging()
      The Paging of this request: defines page size and page offset, never null.
    • getQuery

      public Query getQuery()
      The Query of this request, never null.
    • nextPage

      public SearchRequest nextPage()
      Returns a new SearchRequest instance for "next page" relative to this instance, never null.
    • toString

      public String toString()
      Overrides:
      toString in class Object