com.acsinet_solutions.cetia4.controller.rest.support
Class MainServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.acsinet_solutions.cetia4.controller.rest.AbstractRestServlet
              extended by com.acsinet_solutions.cetia4.controller.rest.RestServlet
                  extended by com.acsinet_solutions.cetia4.controller.rest.support.MainServlet
All Implemented Interfaces:
AttributeKeys, ControllerConstants, RestModule, java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class MainServlet
extends RestServlet

Simple implementation of a start servlet with a default render() method marked with DefaultController annotation and with a default "index" response. It provides a simple main class for implementations. If this class is used on projects, it should be loaded first using a load-on-startup tag.

Author:
Santiago Arriaga
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.acsinet_solutions.cetia4.controller.ControllerConstants
_METHOD_PARAM, _PAGE_PARAM, _ROOT_PARAM, DEFAULT_VIEW, ERROR_URL, ERROR_VIEW, LOAD_CANCEL, LOAD_CURRENT, LOAD_DEFAULT, LOAD_ERROR, LOAD_PREVIOUS
 
Fields inherited from interface com.acsinet_solutions.cetia4.controller.AttributeKeys
_BUNDLE_KEY, _CONFIGURATION_KEY, _DEFAULT_CONTROLLER_KEY, _FORM_ACTION_KEY, _FORM_ATTRIBUTE_KEY, _LOCALE_KEY, _MESSAGE_KEY, _NAVIGATION_FLOW_KEY, _PORTAL_PATH_KEY, _RENDER_PARAMETERS_KEY, _SERVICE_LOCATOR_KEY, _SESSION_KEY, _SYSTEM_EXCEPTION_KEY, _VALIDATION_EXCEPTION_KEY
 
Constructor Summary
MainServlet()
           
 
Method Summary
 java.lang.String render(RenderContext context)
          Simple render display that only calls to load the "index" view.
 
Methods inherited from class com.acsinet_solutions.cetia4.controller.rest.RestServlet
getModuleName, getNestedIndex, getNestedModules, getParentModule, getRestModule, getRootModule, nest, nest
 
Methods inherited from class com.acsinet_solutions.cetia4.controller.rest.AbstractRestServlet
doDelete, doGet, doPost, doPut, getConfiguration, getLocator, getLogger, getUserSessionManager, init
 
Methods inherited from class javax.servlet.http.HttpServlet
doHead, doOptions, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.acsinet_solutions.cetia4.controller.rest.RestModule
getConfiguration, getLocator, getLogger
 

Constructor Detail

MainServlet

public MainServlet()
Method Detail

render

@DefaultController
public final java.lang.String render(RenderContext context)
Simple render display that only calls to load the "index" view. If the servlet is mapped as "main" this will call the /WEB-INF/html/main/index.jsp page. This method is called using the DefaultController annotation.