public abstract class MustServlet
extends HttpServlet
Modifier and Type | Field and Description |
---|---|
protected boolean |
firstInstanciatonDone |
protected Logger |
logger |
static boolean |
UTF8 |
Constructor and Description |
---|
MustServlet() |
Modifier and Type | Method and Description |
---|---|
void |
doGet(HttpServletRequest request,
HttpServletResponse response)
Called by the server (via the service method) to allow a servlet to handle a GET request.
|
void |
doPost(HttpServletRequest request,
HttpServletResponse response)
Called by the server (via the service method) to allow a servlet to handle a POST request.
|
protected abstract void |
handlePostOrGetWhatever(GeneralizedRequest request,
HttpServletResponse response) |
protected abstract void |
initWithFirstRequestInfos(java.lang.String realPath)
Initialize your application at the first moment where details about the
application is known by data of the first request.
|
public static final boolean UTF8
protected boolean firstInstanciatonDone
protected Logger logger
public void doGet(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException
request
- an HttpServletRequest object that contains the request the client has made of the servletresponse
- an HttpServletResponse object that contains the response the servlet sends to the clientjava.io.IOException
- if an input or output error is detected when the servlet handles the GET requestjavax.servlet.ServletException
- if the request for the GET could not be handledServletException
public void doPost(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException
request
- an HttpServletRequest object that contains the request the client has made of the servletresponse
- an HttpServletResponse object that contains the response the servlet sends to the clientjava.io.IOException
- if an input or output error is detected when the servlet handles the POST requestjavax.servlet.ServletException
- if the request for the GET could not be handledServletException
protected abstract void initWithFirstRequestInfos(java.lang.String realPath)
realPath
- the real path of application's location ending with a slashprotected abstract void handlePostOrGetWhatever(GeneralizedRequest request, HttpServletResponse response) throws java.io.IOException, ServletException
java.io.IOException
ServletException
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de