public class Controller<HE extends HttpExchange> extends ActionServlet<HE>
| Constructor and Description |
|---|
Controller() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
onControllerError(HE exchange,
Throwable throwable)
Called upon controller uncaught error.
|
protected void |
onControllerInit()
Called during controller initialization.
|
protected void |
onInit()
Registers action methods.
|
protected boolean |
onUncaughtError(HE exchange,
Throwable throwable)
Called when an uncaught error happens while processing an action.
|
afterAction, beforeAction, getHttpExchange, onClientError, onNotFound, registerAction, servicedoDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, serviceprotected final void onInit()
onInit in class ActionServlet<HE extends HttpExchange>protected void onControllerInit()
protected boolean onControllerError(HE exchange, Throwable throwable) throws javax.servlet.ServletException, IOException
exchange - HTTP exchange.throwable - uncaught error.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 boolean onUncaughtError(HE exchange, Throwable throwable) throws javax.servlet.ServletException, IOException
ActionServletonUncaughtError in class ActionServlet<HE extends HttpExchange>exchange - HTTP exchange.throwable - 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.Copyright © 2016 Agapsys Tecnologia Ltda-ME. All rights reserved.