| Modifier and Type | Method and Description |
|---|---|
<T> PagedList<T> |
HttpRequest.asPaged(java.util.function.Function<HttpRequest,HttpResponse> mappingFunction,
java.util.function.Function<HttpResponse<T>,String> linkExtractor)
Allows for following paging links common in many APIs.
|
PagedList<T> |
PagedList.ifFailure(java.util.function.Consumer<HttpResponse<T>> consumer)
For each failed response if the response was NOT a 200-series response or a mapping exception happened.
|
PagedList<T> |
PagedList.ifSuccess(java.util.function.Consumer<HttpResponse<T>> consumer)
For each successful response If the response was a 200-series response.
|
Copyright © 2019. All rights reserved.