public interface PaginationStrategy
| Modifier and Type | Method and Description |
|---|---|
PaginationInfo |
createPaginationInfo(RouteContext routeContext,
Map<String,Object> arguments)
Creates a PaginationInfo instance.
|
Object |
postInvocation(Collection<?> results,
RouteContext routeContext,
PaginationInfo pagingInfo)
Called after the target endpoint method has been invoked and allows the strategy to set HTTP Response headers.
|
Object[] |
preInvocation(PaginationInfo pagingInfo,
Map<String,Object> arguments)
Called before the target endpoint method has been invoked and enables a concrete strategy to manipulate the arguments
that will be passed to the target endpoint method.
|
PaginationInfo createPaginationInfo(RouteContext routeContext, Map<String,Object> arguments)
routeContext - the RouteContext of the route being processed.arguments - the extracted arguments from the current request.PaginationInfo the information required for paging.Object[] preInvocation(PaginationInfo pagingInfo, Map<String,Object> arguments)
pagingInfo - the PaginationInfo instance created by this strategy.arguments - the extracted arguments from the current request.Object[] the arguments that will be passed to the target endpoint method.Object postInvocation(Collection<?> results, RouteContext routeContext, PaginationInfo pagingInfo)
results - the result returned from the target endpoint method.routeContext - the RouteContext.pagingInfo - the PaginationInfo instance created by this strategy.Object Either the unchanged result or a modified result depending on the underlying implementation.Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.