@Decorator public class PaginationHandler extends Object implements RouteProcessor
| Modifier and Type | Field and Description |
|---|---|
private Map<String,Consumer> |
consumers |
private RouteProcessor |
delegate |
private EndpointInvoker |
endpointInvoker |
private PaginationStrategy |
pagingStrategy |
| Constructor and Description |
|---|
PaginationHandler(RouteProcessor delegate,
javax.enterprise.inject.Instance<PaginationStrategy> pagingStrategies,
javax.enterprise.inject.Instance<Consumer> consumers,
EndpointInvoker endpointInvoker) |
| Modifier and Type | Method and Description |
|---|---|
static PaginationStrategy |
defaultPagingStrategy() |
private boolean |
hasPaginatedAnnotation(Route route) |
InvocationResult |
process(RouteContext routeContext)
Handles the actual invocation of the target or the passed-in
Route. |
private final RouteProcessor delegate
private final PaginationStrategy pagingStrategy
private final EndpointInvoker endpointInvoker
@Inject
public PaginationHandler(@Delegate
RouteProcessor delegate,
javax.enterprise.inject.Instance<PaginationStrategy> pagingStrategies,
javax.enterprise.inject.Instance<Consumer> consumers,
EndpointInvoker endpointInvoker)
public InvocationResult process(RouteContext routeContext) throws Exception
RouteProcessorRoute.process in interface RouteProcessorrouteContext - the RouteContext for the current request.Exception - if processing of the route causes an exception.private boolean hasPaginatedAnnotation(Route route)
public static PaginationStrategy defaultPagingStrategy()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.