|
aerogear-controller 1.0.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PaginationStrategy
A strategy for implementing pagination in AeroGear Controller.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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.
|
aerogear-controller 1.0.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||