public abstract class BasicServlet
extends javax.servlet.http.HttpServlet
| Modifier and Type | Class and Description |
|---|---|
static class |
BasicServlet.Property |
| Modifier and Type | Field and Description |
|---|---|
protected Throwable |
connectionError |
| Constructor and Description |
|---|
BasicServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
static javax.servlet.ServletContext |
getContext() |
protected String |
getErrorTemplate() |
static ArrayList<BasicServlet.Property> |
getHeaders(javax.servlet.http.HttpServletRequest req) |
protected abstract String |
getLogFile() |
static ArrayList<BasicServlet.Property> |
getParameters(javax.servlet.http.HttpServletRequest req) |
protected ParseCall |
getParser() |
static Object |
getSessionData(javax.servlet.http.HttpServletRequest req,
String sessionKey) |
void |
init(javax.servlet.ServletConfig config) |
static boolean |
load(javax.servlet.http.HttpServletRequest req,
String key,
boolean d) |
static double |
load(javax.servlet.http.HttpServletRequest req,
String key,
double defaultValue) |
static int |
load(javax.servlet.http.HttpServletRequest req,
String key,
int defaultValue) |
static String |
load(javax.servlet.http.HttpServletRequest req,
String key,
String d) |
static boolean |
load(String i,
boolean d) |
static double |
load(String i,
double defaultValue) |
static int |
load(String i,
int defaultValue) |
static boolean |
loadCheckBox(javax.servlet.http.HttpServletRequest req,
String key,
boolean d) |
static boolean |
loadCheckBox(String i,
boolean d) |
static javax.servlet.http.Cookie |
loadCookie(javax.servlet.http.HttpServletRequest req,
String cookieName) |
static String |
loadCookieValue(javax.servlet.http.HttpServletRequest req,
String cookieName) |
static Timestamp |
loadDate(javax.servlet.http.HttpServletRequest req,
String key,
Date defaultValue) |
static Calendar |
loadDate(javax.servlet.http.HttpServletRequest req,
String month,
String day,
String year) |
static String |
loadNullableString(javax.servlet.http.HttpServletRequest req,
String key) |
static String |
loadNullableString(String value) |
static String |
loadUpperCaseString(javax.servlet.http.HttpServletRequest req,
String key) |
static String |
loadUpperCaseString(String i) |
String |
processError(Throwable t,
javax.servlet.http.HttpServletRequest req) |
String |
processError(Throwable t,
javax.servlet.http.HttpServletRequest req,
SecondaryErrorProcessor secondardErrorProcessor) |
static void |
setContentTypeAsExcel(javax.servlet.http.HttpServletResponse res,
String fileName) |
static void |
setContentTypeAsImage(javax.servlet.http.HttpServletResponse res) |
static String |
setContentTypeAsXml(javax.servlet.http.HttpServletResponse res,
String xml) |
static void |
setContentTypeAsZip(javax.servlet.http.HttpServletResponse res,
String fileName) |
static void |
setCookie(javax.servlet.http.HttpServletResponse response,
String name,
String value,
int maxAge) |
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceprotected Throwable connectionError
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic static javax.servlet.ServletContext getContext()
public void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionpublic static int load(javax.servlet.http.HttpServletRequest req,
String key,
int defaultValue)
public static int load(String i, int defaultValue)
public static double load(javax.servlet.http.HttpServletRequest req,
String key,
double defaultValue)
public static double load(String i, double defaultValue)
public static boolean loadCheckBox(String i, boolean d)
public static boolean loadCheckBox(javax.servlet.http.HttpServletRequest req,
String key,
boolean d)
public static javax.servlet.http.Cookie loadCookie(javax.servlet.http.HttpServletRequest req,
String cookieName)
public static String loadCookieValue(javax.servlet.http.HttpServletRequest req, String cookieName)
public static void setCookie(javax.servlet.http.HttpServletResponse response,
String name,
String value,
int maxAge)
public static Calendar loadDate(javax.servlet.http.HttpServletRequest req, String month, String day, String year)
public static Timestamp loadDate(javax.servlet.http.HttpServletRequest req, String key, Date defaultValue)
public static boolean load(javax.servlet.http.HttpServletRequest req,
String key,
boolean d)
public static boolean load(String i, boolean d)
public static String loadUpperCaseString(javax.servlet.http.HttpServletRequest req, String key)
public static String loadNullableString(javax.servlet.http.HttpServletRequest req, String key)
protected abstract String getLogFile()
protected ParseCall getParser()
protected String getErrorTemplate()
public String processError(Throwable t, javax.servlet.http.HttpServletRequest req, SecondaryErrorProcessor secondardErrorProcessor)
public static ArrayList<BasicServlet.Property> getHeaders(javax.servlet.http.HttpServletRequest req)
public static void setContentTypeAsZip(javax.servlet.http.HttpServletResponse res,
String fileName)
public static void setContentTypeAsExcel(javax.servlet.http.HttpServletResponse res,
String fileName)
public static void setContentTypeAsImage(javax.servlet.http.HttpServletResponse res)
public static ArrayList<BasicServlet.Property> getParameters(javax.servlet.http.HttpServletRequest req)
public static Object getSessionData(javax.servlet.http.HttpServletRequest req, String sessionKey)
public static String setContentTypeAsXml(javax.servlet.http.HttpServletResponse res, String xml) throws IOException
IOExceptionCopyright © 2018. All rights reserved.