API Overview API Index Package Overview Direct link to this page
JavaOnTracks 0.1.2
  net.jot.web.ctrl. JOTMasterController View Source
Author(s)
thibautc
Since
Version
Serial
Hierarchy
 Object
      JOTMasterController
Implements
Subclasses
Description
public class JOTMasterController
  This is the master controller, it handles a complete "user request" comiming from the browser.
See also:   
Constructors
public JOTMasterController ()
Methods
Hide/Show inherited methods
publicfinal FilterChain getFilterChain ()
publicfinal FilterConfig getFilterConfig ()
publicfinal JOTFlowConfig getFlowConfig ()
public JOTForm getForm (Class formClass)
  use this method to get/create a form object Will provide either : - a new form object if this form is newly used - the existing form if used earlier in this request (ie: validation failed) This allows you to get the form and put it in the View, or to populate/validate it in your controller.
publicfinal JOTFlowRequest getRequest ()
publicfinal HttpServletResponse getResponse ()
publicfinal void process () throws Exception
  Main method executing the request
public void render404 (HttpServletResponse response, String txt) throws Exception
  Renders a "not found" page
public void renderError (HttpServletResponse response, Throwable t)
  Render an error page (Unexpected Exception)
public void renderForbidden (HttpServletResponse response) throws Exception
  Renders a forbidden page
public void renderPlain (ServletResponse response, String text)
  Renders a page in plain text (no template/decoration), this is a failover if "nice" forbidden/404...
public void renderPlainError (ServletResponse response, Throwable t)
  Renders an unexpected error, this is a failover if renderError did not succeed
public void sendResponse (HttpServletResponse response, String template) throws Exception
  Sends the processed HTML page to the browser
publicfinal void setFilterChain (FilterChain filterChain)
publicfinal void setFilterConfig (FilterConfig filterConfig) throws Exception
publicfinal void setFlowConfig (JOTFlowConfig flowConfig) throws Exception
publicfinal void setRequest (ServletRequest request) throws Exception
publicfinal void setResponse (ServletResponse response) throws Exception
public Hashtable validateForm (JOTForm form) throws Exception
  Calls the form validation
protected boolean validatePermissions (JOTForm form) throws Exception
  Calls a form permission validation
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.5     ©Thibaut Colar