public abstract class SessionStd
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected SessionData |
sessionData |
Constructor and Description |
---|
SessionStd()
Constructs a new session.
|
Modifier and Type | Method and Description |
---|---|
protected void |
afterFirstSessionHandle()
Called afters session creation and after session' response writer has been established.
|
protected abstract void |
build(SessionData sessionData)
Build part to be done by the individual session object.
|
void |
buildAll()
Called from MainStd after instantiating the session to build things in
arbitrary sequence.
|
protected void |
connectToDb() |
protected SessionData |
createSessionData()
Constructs session data.
|
void |
destroy()
Destroy this object in order to free resources and weak references more early than
garbage collector.
|
protected void |
free()
Frees (releases) references caused by this frame, particularly static
register entries.
|
protected abstract java.lang.String |
getApplicationTitle() |
java.lang.String |
getContextPath()
Returns the context path.
|
protected abstract GlobalStd |
getGlobal()
Returns the application's global objects class.
|
java.lang.String |
getSessionId()
Returns the session's id
|
protected java.lang.String |
getTranslation(java.lang.String resourceKey) |
protected void |
handlePostOrGetWhatever(GeneralizedRequest request,
HttpServletResponse response) |
boolean |
isOld()
Returns true if this session is old.
|
boolean |
isToClose()
Returns true if the session is to close.
|
boolean |
open(java.lang.String id,
HttpServletResponse response) |
boolean |
seemsToBeUnused()
Returns true if this session seems to be unused.
|
void |
setContextPath(java.lang.String contextPath)
Sets the context path.
|
void |
setSecondsForUnusedSessions(int secondsForUnusedSessions)
Set the interval to treat a session as unused.
|
void |
setSessionId(java.lang.String sessionId)
Sets the session's id
|
static void |
setUseSeperateConnectionsForEachSession(boolean newSeparateConnections)
Determines whether each session should use its own database connection or not.
|
protected boolean |
specialHandling(GeneralizedRequest request) |
protected SessionData sessionData
public static void setUseSeperateConnectionsForEachSession(boolean newSeparateConnections)
separateConnections
- whether each session should use its own database connection or notprotected void connectToDb()
protected SessionData createSessionData()
public void setSecondsForUnusedSessions(int secondsForUnusedSessions)
secondsForUnusedSessions
- the interval to treat a session as unusedprotected abstract GlobalStd getGlobal()
public void setContextPath(java.lang.String contextPath)
contextPath
- the context pathpublic java.lang.String getContextPath()
public void setSessionId(java.lang.String sessionId)
sessionId
- the session's idpublic java.lang.String getSessionId()
public void buildAll()
protected abstract void build(SessionData sessionData)
sessionData
- the session's public dataprotected void handlePostOrGetWhatever(GeneralizedRequest request, HttpServletResponse response) throws java.io.IOException, ServletException
java.io.IOException
ServletException
public boolean open(java.lang.String id, HttpServletResponse response) throws java.io.IOException
java.io.IOException
protected void afterFirstSessionHandle()
protected abstract java.lang.String getApplicationTitle()
protected boolean specialHandling(GeneralizedRequest request)
public boolean isToClose()
public boolean seemsToBeUnused()
public boolean isOld()
public void destroy()
protected void free()
destroy()
protected java.lang.String getTranslation(java.lang.String resourceKey)
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de