public interface PagingStrategy
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.http.api.domain.message.request.HttpRequestBuilder |
configureRequest(String baseUri,
org.mule.runtime.http.api.domain.message.request.HttpRequestBuilder requestBuilder,
RestPagingProvider.PagingContext context)
Depending on the paging strategy, different parameters or headers may need to be passed.
|
void |
onPage(List<org.mule.runtime.api.metadata.TypedValue<String>> page,
org.mule.runtime.api.metadata.TypedValue<String> rawPage,
org.mule.runtime.api.util.MultiMap<String,String> headers,
RestPagingProvider.PagingContext context)
Invoked each time a page is obtained.
|
org.mule.runtime.http.api.domain.message.request.HttpRequestBuilder configureRequest(String baseUri, org.mule.runtime.http.api.domain.message.request.HttpRequestBuilder requestBuilder, RestPagingProvider.PagingContext context)
baseUri - the base uri of the REST API being consumed.requestBuilder - a HttpRequestBuilder.context - the pagination context to allow stopping the pagination mechanism.HttpRequestBuilder configured or a new one.void onPage(List<org.mule.runtime.api.metadata.TypedValue<String>> page, org.mule.runtime.api.metadata.TypedValue<String> rawPage, org.mule.runtime.api.util.MultiMap<String,String> headers, RestPagingProvider.PagingContext context)
page - the obtained pagecontext - the pagination context to allow stopping the pagination mechanism.Copyright © 2022. All rights reserved.