|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.acsinet_solutions.cetia4.controller.rest.AbstractRestServlet
com.acsinet_solutions.cetia4.controller.rest.RestServlet
public abstract class RestServlet
This class implements a REST based servlet that may be used as a superclass for modules that will implement REST modules themselves inheriting the current class. Modules implemented this way are tied to the servlet API, but are very easy to setup and use ( see the tutorial for more examples about this ).
| 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 | |
|---|---|
RestServlet()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getModuleName()
In servlets, the module name is the servlet name, so conventions in web.xml are important. |
int |
getNestedIndex()
Get the nested index of available path-info params between this module and the previous one. |
java.util.List<RestModule> |
getNestedModules()
Get the not-null maybe empty list of nested modules inside this instance. |
RestModule |
getParentModule()
Get the parent module; servlets have no parent module and return null; other components always return not null. |
protected RestModule |
getRestModule()
This is a factory abstract template method that will be overriden by subclasses to provide the Root Rest module that will be attended by the current instance. |
RestModule |
getRootModule()
A servlet is always a root module |
protected void |
nest(java.lang.Class<? extends RestModuleSupport> c)
Add a nested rest module that will be dynamically enhanced. |
protected void |
nest(RestModule module)
Add a nested rest module. |
| 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 |
|---|
public RestServlet()
| Method Detail |
|---|
protected final void nest(RestModule module)
protected final void nest(java.lang.Class<? extends RestModuleSupport> c)
public final int getNestedIndex()
RestModule
getNestedIndex in interface RestModulepublic final java.util.List<RestModule> getNestedModules()
RestModule
getNestedModules in interface RestModulepublic final RestModule getParentModule()
RestModule
getParentModule in interface RestModulepublic final RestModule getRootModule()
getRootModule in interface RestModulepublic final java.lang.String getModuleName()
getModuleName in interface RestModuleprotected final RestModule getRestModule()
AbstractRestServlet
getRestModule in class AbstractRestServlet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||