public class ActionServlet
extends javax.servlet.http.HttpServlet
| Constructor and Description |
|---|
ActionServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterAction(ActionRequest request,
ActionResponse response)
Called after an action processing.
|
protected void |
beforeAction(ActionRequest request,
ActionResponse response)
Called before an action.
|
protected boolean |
isInitialized()
Returns a boolean indicating this servlet initialization status.
|
protected void |
onClientError(ActionRequest request,
ActionResponse response,
ClientException error)
Called upon a client error.
|
protected void |
onInit()
Called during servlet initialization.
|
protected boolean |
onUncaughtError(ActionRequest request,
ActionResponse response,
RuntimeException uncaughtError)
Called when an uncaught error happened while processing the request.
|
protected void |
registerAction(HttpMethod method,
String path,
Action action)
Register an action.
|
protected void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, serviceprotected boolean isInitialized()
protected void onInit()
protected void registerAction(HttpMethod method, String path, Action action)
method - HTTP method.path - path relative to this provider Servlet mapping.action - action associated with given parameters.protected boolean onUncaughtError(ActionRequest request, ActionResponse response, RuntimeException uncaughtError) throws javax.servlet.ServletException, IOException
request - HTTP request.response - HTTP response.uncaughtError - uncaught error.javax.servlet.ServletException - if the HTTP request cannot be handled.IOException - if an input or output error occurs while the servlet is handling the HTTP request.protected void onClientError(ActionRequest request, ActionResponse response, ClientException error) throws javax.servlet.ServletException, IOException
request - HTTP request.response - HTTP response.error - client error.javax.servlet.ServletException - if the HTTP request cannot be handledIOException - if an input or output error occurs while the servlet is handling the HTTP request.protected void beforeAction(ActionRequest request, ActionResponse response) throws javax.servlet.ServletException, IOException
request - HTTP request.response - HTTP response.javax.servlet.ServletException - if the HTTP request cannot be handled.IOException - if an input or output error occurs while the servlet is handling the HTTP request.protected void afterAction(ActionRequest request, ActionResponse response) throws javax.servlet.ServletException, IOException
request - HTTP request.response - HTTP response.IOException - if an input or output error occurs while the servlet is handling the HTTP request.javax.servlet.ServletException - if the HTTP request cannot be handled.protected final void service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
IOException
service in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionCopyright © 2017 Agapsys Tecnologia Ltda-ME. All rights reserved.