public abstract class SessionStd
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected SessionData |
sessionData |
Constructor and Description |
---|
SessionStd(java.lang.String actionForPost,
java.lang.String applicationTitle)
Constructs a new session.
|
Modifier and Type | Method and Description |
---|---|
void |
backInvoke()
Goes one step back in stack and recovers the appropriate invokable.
|
void |
backInvoke(int steps)
Goes one or more steps back in stack and recovers the appropriate invokable.
|
void |
baseInvoke(java.lang.Class<? extends Invokable> classToBeInvoked)
Instantiates the class to be invoked, which must implement the interface
, and invokes it as the root of the stack. |
void |
baseInvoke(LoginDialog login)
Invokes the specified menu bar as the root invokable of the stack.
|
void |
baseInvoke(MustMenuBar menuBar)
Invokes the specified menu bar as the root invokable of the stack.
|
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.
|
void |
destroy()
Destroy this object in order to free resources and weak references more early than
garbage collector.
|
protected void |
finalize() |
protected void |
free()
Frees (releases) references caused by this frame, particularly static
register entries.
|
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 void |
handlePostOrGetWhatever(GeneralizedRequest request,
HttpServletResponse response) |
void |
invoke(Invokable invokable)
Invokes an invokable and puts it in the current position of the stack order.
|
boolean |
isOld()
Returns true if this session is old.
|
boolean |
isToClose()
Returns true if the session is to close.
|
boolean |
seemsToBeUnused()
Returns true if this session seems to be unused.
|
void |
setContextPath(java.lang.String contextPath)
Sets the context path.
|
void |
setLocale(java.util.Locale locale)
Sets the locale of the session.
|
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.
|
void |
subInvoke(Invokable invokable)
Invokes an invokable and puts it in the next position of stack order.
|
protected SessionData sessionData
public SessionStd(java.lang.String actionForPost, java.lang.String applicationTitle)
actionForPost
- the action for the post operation, which is typically
the one and only servlet class, e.g. "de.jugs.cookbook.Main"applicationTitle
- the title of the applicationpublic static void setUseSeperateConnectionsForEachSession(boolean newSeparateConnections)
separateConnections
- whether each session should use its own database connection or notprotected abstract GlobalStd getGlobal()
public void setLocale(java.util.Locale locale)
locale
- the locale of the sessionpublic 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 isToClose()
public void baseInvoke(MustMenuBar menuBar)
menuBar
- the menu bar to invoke as rootpublic void baseInvoke(LoginDialog login)
menuBar
- the menu bar to invoke as rootpublic void baseInvoke(java.lang.Class<? extends Invokable> classToBeInvoked)
Invokable
, and invokes it as the root of the stack.classToBeInvoked
- the class to be invokedInvokable
public void subInvoke(Invokable invokable)
invokable
- to be invokedpublic void backInvoke()
public void backInvoke(int steps)
steps
- the amount of steps to go back in stackpublic void invoke(Invokable invokable)
invokable
- to be invokedpublic boolean seemsToBeUnused()
public boolean isOld()
public void destroy()
protected void free()
destroy()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de