@Decorator public class ResponseHandler extends Object implements RouteProcessor
RouteProcessor and is responsible for handling
the result from the invoked endpoint.| Modifier and Type | Field and Description |
|---|---|
private RouteProcessor |
delegate |
private Responders |
responders |
| Constructor and Description |
|---|
ResponseHandler(RouteProcessor delegate,
Responders responders)
Sole contructor which will have its parameters injected by CDI.
|
| Modifier and Type | Method and Description |
|---|---|
InvocationResult |
process(RouteContext routeContext)
Handles the actual invocation of the target or the passed-in
Route. |
private final RouteProcessor delegate
private final Responders responders
@Inject
public ResponseHandler(@Delegate
RouteProcessor delegate,
Responders responders)
delegate - the RouteProcessor that this class decorates.responders - the Responders class that will handle the response processing.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.Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.