org.infohazard.maverick.flow
Interface ViewContext

All Known Implementing Classes:
MaverickContext

public interface ViewContext

ViewContext defines the methods and data available to a view for a single request.


Method Summary
 java.lang.Object getModel()
          Obtain the model which is to be rendered.
 TransformStep getNextStep()
          This is where output should be sent.
 java.util.Map getParams()
          Obtain any params that were set.
 javax.servlet.http.HttpServletResponse getRealResponse()
          Returns the *real* response object.
 javax.servlet.http.HttpServletRequest getRequest()
           
 javax.servlet.ServletContext getServletContext()
           
 

Method Detail

getModel

public java.lang.Object getModel()
Obtain the model which is to be rendered.


getParams

public java.util.Map getParams()
Obtain any params that were set.


getNextStep

public TransformStep getNextStep()
                          throws javax.servlet.ServletException
This is where output should be sent. If it returns null, there are no transforms, and you should use the real response.

javax.servlet.ServletException

getRequest

public javax.servlet.http.HttpServletRequest getRequest()

getServletContext

public javax.servlet.ServletContext getServletContext()

getRealResponse

public javax.servlet.http.HttpServletResponse getRealResponse()
Returns the *real* response object. Do not use this unless you know are the tail!