public abstract class MainStd extends MustServlet
firstInstanciatonDone
Constructor and Description |
---|
MainStd()
Constructs a new main servlet.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
buildClient(GeneralizedRequest request) |
static boolean |
buildClient(HttpServletRequest request,
java.lang.String url) |
protected abstract java.lang.String |
getApplicationLoginTitle() |
protected ConnectionSpecification |
getConnectionSpec(java.lang.String realPath,
java.lang.String stdWebappName)
Returns the connection specification if it is defined or null otherwise.
|
protected java.io.File |
getConnectSpecFile(java.lang.String realPath,
java.lang.String stdWebappName)
Returns the file containing the connection specification for this webapp.
|
protected java.util.Locale |
getForcedLocale() |
protected abstract GlobalStd |
getGlobal()
Returns the application's global objects class.
|
protected abstract LoggedInUser |
getLoggedInUser(DataObject loginDataObject,
java.lang.String user,
java.lang.String password) |
protected abstract DataObject |
getNewLoginDataObject()
Return new data object used for login.
|
protected abstract SessionStd |
getNewSession()
Returns the session class to use.
|
protected void |
handlePostOrGetWhatever(GeneralizedRequest request,
HttpServletResponse response) |
protected abstract boolean |
isLoginMandatory(DataObject loginDataObject) |
protected void |
rebuildDueToNewDBConnection()
Things to do after database connection has been rebuild to avoid 'No operations allowed after connection closed
|
doGet, doPost, initWithFirstRequestInfos
public static boolean buildClient(GeneralizedRequest request)
public static boolean buildClient(HttpServletRequest request, java.lang.String url)
protected ConnectionSpecification getConnectionSpec(java.lang.String realPath, java.lang.String stdWebappName)
realPath
- the real path where the app is executedstdWebappName
- the standard webapp name (it may have been renamed to run multiple instances)protected java.io.File getConnectSpecFile(java.lang.String realPath, java.lang.String stdWebappName)
realPath
- the real path where the app is executedstdWebappName
- the standard webapp name (it may have been renamed to run multiple instances)protected void handlePostOrGetWhatever(GeneralizedRequest request, HttpServletResponse response) throws java.io.IOException, ServletException
handlePostOrGetWhatever
in class MustServlet
java.io.IOException
ServletException
protected void rebuildDueToNewDBConnection()
protected java.util.Locale getForcedLocale()
protected abstract GlobalStd getGlobal()
protected abstract DataObject getNewLoginDataObject()
protected abstract boolean isLoginMandatory(DataObject loginDataObject)
protected abstract java.lang.String getApplicationLoginTitle()
protected abstract LoggedInUser getLoggedInUser(DataObject loginDataObject, java.lang.String user, java.lang.String password)
protected abstract SessionStd getNewSession()
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de