public abstract class MainStd extends MustServlet
firstInstanciatonDone, logger, UTF8
Constructor and Description |
---|
MainStd()
Constructs a new main servlet.
|
Modifier and Type | Method and Description |
---|---|
SessionStd |
getCurrentSession(GeneralizedRequest request)
Returns the current session of the request.
|
SessionStd |
getCurrentSessionByCookie(GeneralizedRequest request)
Returns the current session of the request by using cookies.
|
protected abstract GlobalStd |
getGlobal()
Returns the application's global objects class.
|
protected abstract java.lang.Class<? extends SessionStd> |
getSessionClass()
Returns the session class to use.
|
protected void |
handlePostOrGetWhatever(GeneralizedRequest request,
HttpServletResponse response) |
protected void |
rebuildDueToNewDBConnection()
Things to do after database connection has been rebuild to avoid 'No operations allowed after connection closed
|
doGet, doPost, initWithFirstRequestInfos
protected void handlePostOrGetWhatever(GeneralizedRequest request, HttpServletResponse response) throws java.io.IOException, ServletException
handlePostOrGetWhatever
in class MustServlet
java.io.IOException
ServletException
protected abstract GlobalStd getGlobal()
protected void rebuildDueToNewDBConnection()
public SessionStd getCurrentSession(GeneralizedRequest request)
request
- an HttpServletRequest objectpublic SessionStd getCurrentSessionByCookie(GeneralizedRequest request)
request
- an HttpServletRequest objectprotected abstract java.lang.Class<? extends SessionStd> getSessionClass()
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de