T
- the type of the item returned by this request.public abstract class ListRequest<S,T>
extends java.lang.Object
Base class for GET requests that return multiple items.
Modifier and Type | Class and Description |
---|---|
static interface |
ListRequest.ListRequestExecutor<S,T> |
Modifier and Type | Method and Description |
---|---|
S |
execute()
Executes this request.
|
ApiResponse<S> |
executeWrapped()
Executes this request.
|
static <T> ListRequest.ListRequestExecutor<java.lang.Iterable<T>,T> |
iteratingExecutor() |
static <T> ListRequest.ListRequestExecutor<ListResponse<T>,T> |
pagingExecutor() |
public S execute()
Executes this request.
Returns the API response.
GoCardlessException
public ApiResponse<S> executeWrapped()
Executes this request.
Returns a ApiResponse
that wraps the response entity.
GoCardlessException
public static <T> ListRequest.ListRequestExecutor<ListResponse<T>,T> pagingExecutor()
public static <T> ListRequest.ListRequestExecutor<java.lang.Iterable<T>,T> iteratingExecutor()