Class PaginatedPostRequest<T>
java.lang.Object
com.eqixiac.equinix.core.http.request.EquinixRequest<T>
com.eqixiac.equinix.core.http.request.PaginatedPostRequest<T>
- Type Parameters:
T- the operation's model type
Request carrier for POST-based search operations whose paging state lives in the request
body (a
PaginatedPostBody) rather than in
offset/limit query parameters. The paging pipeline advances the body's
pagination between pages; because the wire entity is rebuilt from the RequestBody
at every dispatch, the advanced offset is re-serialized automatically.- Author:
- ianjones
-
Field Summary
Fields inherited from class EquinixRequest
queryParameters -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConvenience accessor for the live search body: the payload of this request's JSONRequestBody.Methods inherited from class EquinixRequest
addHeader, addPathParameter, addQueryParameter, addQueryParameters, addSingleQueryParameter, replaceQueryParameter, setHeaders, setPathParameters, setQueryParametersModifier and TypeMethodDescriptionvoidvoidaddPathParameter(String parameterName, String parameterValue) voidaddQueryParameter(String parameterName, List<String> parameterValues) voidaddQueryParameters(Map<String, List<String>> parameterValues) voidaddSingleQueryParameter(String parameterName, String parameterValue) voidreplaceQueryParameter(String parameterName, List<String> parameterValues) voidsetHeaders(Map<String, String> headers) Sets the headers, defensively copying into a mutable map (mirrorsEquinixRequest.setQueryParameters(Map):addHeadermutates the stored map, so an immutable caller-supplied map must not be stored by reference).voidsetPathParameters(Map<String, String> pathParameters) Sets the path parameters, defensively copying into a mutable map (mirrorsEquinixRequest.setQueryParameters(Map):addPathParametermutates the stored map, so an immutable caller-supplied map - e.g.voidsetQueryParameters(Map<String, List<String>> queryParameters) Sets the query parameters, defensively deep-copying into a mutable map with mutable value lists.
-
Constructor Details
-
PaginatedPostRequest
public PaginatedPostRequest()
-
-
Method Details
-
getSearchBody
Convenience accessor for the live search body: the payload of this request's JSONRequestBody.- Returns:
- the search body payload, or
nullwhen no JSON body is attached
-