public class BaseServlet
extends javax.servlet.http.HttpServlet
Modifier and Type | Field and Description |
---|---|
protected static String |
METHOD_GET |
protected static String |
METHOD_POST |
Constructor and Description |
---|
BaseServlet() |
Modifier and Type | Method and Description |
---|---|
void |
footer(PrintWriter out)
Print HTML page footer
|
void |
header(PrintWriter out,
String title,
String[][] breadcrumb)
Print HTML page header
|
static boolean |
isAdmin(javax.servlet.http.HttpServletRequest request)
Test if an user can access to administration
|
void |
ok(PrintWriter out,
String msg)
Print ok messages
|
protected void |
sendError(PrintWriter out,
String msg)
Dispatch errors
|
protected void |
sendErrorRedirect(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Throwable e)
Dispatch errors
|
void |
updateSessionManager(javax.servlet.http.HttpServletRequest request)
Update HTTP session manager
|
void |
warn(PrintWriter out,
String msg)
Print warn messages
|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
protected static final String METHOD_GET
protected static final String METHOD_POST
protected void sendErrorRedirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Throwable e) throws javax.servlet.ServletException, IOException
javax.servlet.ServletException
IOException
protected void sendError(PrintWriter out, String msg) throws javax.servlet.ServletException, IOException
javax.servlet.ServletException
IOException
public void updateSessionManager(javax.servlet.http.HttpServletRequest request)
public static boolean isAdmin(javax.servlet.http.HttpServletRequest request)
public void header(PrintWriter out, String title, String[][] breadcrumb)
public void footer(PrintWriter out)
public void ok(PrintWriter out, String msg)
public void warn(PrintWriter out, String msg)
Copyright © 2015. All Rights Reserved.