public class SearchEndpoint extends PaginatedEndpoint<SearchEndpoint.SearchResult,SearchEndpoint.SearchResponse,SearchEndpoint.SearchRequest>
| Modifier and Type | Class and Description |
|---|---|
static class |
SearchEndpoint.IndexType
The IndexType to sort the results by.
|
static class |
SearchEndpoint.SearchRequest
Represents a search request.
|
static class |
SearchEndpoint.SearchResponse
Represents a search response.
|
static class |
SearchEndpoint.SearchResult
Represents a search result.
|
PaginatedEndpoint.PaginatedRequest, PaginatedEndpoint.PaginatedResponse<T>| Constructor and Description |
|---|
SearchEndpoint(HttpClient client,
com.google.gson.Gson gson)
Creates a new search endpoint.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getEndpoint()
Returns the endpoint to use.
|
com.google.gson.reflect.TypeToken<SearchEndpoint.SearchRequest> |
getRequestClass()
Returns the request class to use.
|
com.google.gson.reflect.TypeToken<SearchEndpoint.SearchResponse> |
getResponseClass()
Returns the response class to use.
|
boolean |
isJsonBody()
If this endpoint uses a JSON body.
|
checkBodyForErrors, executeRequest, getMethod, getReplacedUrl, readFile, readStream, requiresBody, sendRequest, sendRequestpublic SearchEndpoint(HttpClient client, com.google.gson.Gson gson)
client - - The client to usegson - - The gson instance to usepublic String getEndpoint()
getEndpoint in class Endpoint<SearchEndpoint.SearchResponse,SearchEndpoint.SearchRequest>public com.google.gson.reflect.TypeToken<SearchEndpoint.SearchRequest> getRequestClass()
getRequestClass in class Endpoint<SearchEndpoint.SearchResponse,SearchEndpoint.SearchRequest>TypeToken of the request.public com.google.gson.reflect.TypeToken<SearchEndpoint.SearchResponse> getResponseClass()
getResponseClass in class Endpoint<SearchEndpoint.SearchResponse,SearchEndpoint.SearchRequest>TypeToken of the response.public boolean isJsonBody()
isJsonBody in class Endpoint<SearchEndpoint.SearchResponse,SearchEndpoint.SearchRequest>Copyright © 2026. All rights reserved.