org.juzu.request
Class ActionContext

java.lang.Object
  extended by org.juzu.request.RequestContext
      extended by org.juzu.request.ActionContext

public class ActionContext
extends RequestContext

Author:
Julien Viet

Constructor Summary
ActionContext(ControllerMethod method, ClassLoader classLoader, org.juzu.impl.spi.request.ActionBridge bridge)
           
 
Method Summary
 Response.Render createResponse(ControllerMethod method)
           
 Response.Render createResponse(ControllerMethod method, Object arg)
           
 Response.Render createResponse(ControllerMethod method, Object[] args)
           
 Phase getPhase()
           
 boolean isSent()
           
 Response.Redirect redirect(String location)
           
 
Methods inherited from class org.juzu.request.RequestContext
getClassLoader, getMethod, getParameters
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionContext

public ActionContext(ControllerMethod method,
                     ClassLoader classLoader,
                     org.juzu.impl.spi.request.ActionBridge bridge)
Method Detail

getPhase

public Phase getPhase()
Specified by:
getPhase in class RequestContext

redirect

public Response.Redirect redirect(String location)

isSent

public boolean isSent()

createResponse

public Response.Render createResponse(ControllerMethod method)
                               throws IllegalStateException
Throws:
IllegalStateException

createResponse

public Response.Render createResponse(ControllerMethod method,
                                      Object arg)
                               throws IllegalStateException
Throws:
IllegalStateException

createResponse

public Response.Render createResponse(ControllerMethod method,
                                      Object[] args)
                               throws IllegalStateException
Throws:
IllegalStateException


Copyright © 2011 eXo Platform SAS. All Rights Reserved.