org.jboss.aerogear.controller.router.decorators
Class ResponseHandler
java.lang.Object
org.jboss.aerogear.controller.router.decorators.ResponseHandler
- All Implemented Interfaces:
- RouteProcessor
@Decorator
public class ResponseHandler
- extends Object
- implements RouteProcessor
ResponseHandler is a CDI Decorator that decorates a RouteProcessor and is responsible for handling
the result from the invoked endpoint.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
delegate
private final RouteProcessor delegate
responders
private final Responders responders
ResponseHandler
@Inject
public ResponseHandler(@Delegate
RouteProcessor delegate,
Responders responders)
- Sole contructor which will have its parameters injected by CDI.
- Parameters:
delegate - the RouteProcessor that this class decorates.responders - the Responders class that will handle the response processing.
process
public InvocationResult process(RouteContext routeContext)
throws Exception
- Description copied from interface:
RouteProcessor
- Handles the actual invocation of the target or the passed-in
Route.
- Specified by:
process in interface RouteProcessor
- Parameters:
routeContext - the RouteContext for the current request.
- Throws:
Exception - if processing of the route causes an exception.
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.