aerogear-controller 1.0.2

org.jboss.aerogear.controller.router.decorators
Class ResponseHandler

java.lang.Object
  extended by 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.


Field Summary
private  RouteProcessor delegate
           
private  Responders responders
           
 
Constructor Summary
ResponseHandler(RouteProcessor delegate, Responders responders)
          Sole contructor which will have its parameters injected by CDI.
 
Method Summary
 InvocationResult process(RouteContext routeContext)
          Handles the actual invocation of the target or the passed-in Route.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegate

private final RouteProcessor delegate

responders

private final Responders responders
Constructor Detail

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.
Method Detail

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.

aerogear-controller 1.0.2

Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.