aerogear-controller 1.0.2

org.jboss.aerogear.controller.router
Class InvocationResult

java.lang.Object
  extended by org.jboss.aerogear.controller.router.InvocationResult

public class InvocationResult
extends Object

Represents the result of invoking a Route in AeroGear Controller.


Field Summary
private  Object result
           
private  RouteContext routeContext
           
 
Constructor Summary
InvocationResult(Object result, RouteContext routeContext)
          Sole constructor.
 
Method Summary
 Object getResult()
          Gets the result from this invocation.
 RouteContext getRouteContext()
          The RouteContext for this invocation.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

result

private final Object result

routeContext

private final RouteContext routeContext
Constructor Detail

InvocationResult

public InvocationResult(Object result,
                        RouteContext routeContext)
Sole constructor.

Parameters:
result - the result from invoking the route's target endpoint method, if any.
routeContext - the RouteContext for the current route.
Method Detail

getResult

public Object getResult()
Gets the result from this invocation.

Returns:
Object the result for this invocation.

getRouteContext

public RouteContext getRouteContext()
The RouteContext for this invocation.

Returns:
RouteContext the RouteContext for this invocation.

toString

public String toString()
Overrides:
toString in class Object

aerogear-controller 1.0.2

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