org.jwarp.service.web.init
Class SessionInit

java.lang.Object
  |
  +--org.jwarp.service.web.init.SessionInit
All Implemented Interfaces:
IConfigurable, ISessionInit

public class SessionInit
extends java.lang.Object
implements ISessionInit

Class which incorporates the initialisation of a new session. By default only a new session is created,
but this can be changed by subclassing this class an changing the main servlets factorymethod

Version:
1.01
Author:
A. Tresch, Martin Schaefer
See Also:
org.jwarp.JavaWeb.app.AAppControler, org.jwarp.JavaWeb.app.AAppControler#getSessionInitInstance

Constructor Summary
SessionInit()
          Creates a new session init instance.
 
Method Summary
 void configure(org.jdom.Element config)
          Configure the session init with the corresponding XML partial tree.
 void initSession(WebContext context)
          This function is called when a user the first time enters the aplpication.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionInit

public SessionInit()
Creates a new session init instance.
Method Detail

configure

public void configure(org.jdom.Element config)
               throws ConfigurationException
Configure the session init with the corresponding XML partial tree.
Specified by:
configure in interface IConfigurable
Parameters:
config - The XML tree

initSession

public void initSession(WebContext context)
                 throws InitializationException
Description copied from interface: ISessionInit
This function is called when a user the first time enters the aplpication. The method looks up if a session object is existing. If not one will be creted. This method can be overridden to provide more sophisticated session initialisation.
Specified by:
initSession in interface ISessionInit
Following copied from interface: org.jwarp.service.web.init.ISessionInit
Parameters:
The - web request
The - web response
Returns:
False if the initialisation failed.

©   O R C A   S y s t e m s