|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jrun.servlet.session.JDBCSessionStorage
Provide session storage to a JDBC driver
| Constructor Summary | |
JDBCSessionStorage()
|
|
| Method Summary | |
protected void |
connect()
Connect to the JDBC driver |
void |
destroy()
Destroy the service. |
protected java.lang.String |
getKey(java.lang.String id)
Create the session key |
void |
init(java.util.Properties initConfig)
Initialize the JDBCSessionStorage provider. |
void |
purge()
Gives the storage provider an opportunity to perform housekeeping. |
void |
remove(java.lang.String id)
Removes the session data for the given session ID |
java.io.InputStream |
retrieve(java.lang.String id)
Retrieves the session data for the given session ID. |
void |
store(java.lang.String id,
java.io.InputStream in,
int len)
Stores the given session data. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JDBCSessionStorage()
| Method Detail |
public void init(java.util.Properties initConfig)
throws java.io.IOException,
java.sql.SQLException
Initialize the JDBCSessionStorage provider. Valid properties are:
init in interface SessionStorageprops - The propertiespublic void destroy()
SessionStoragedestroy in interface SessionStorage
public void store(java.lang.String id,
java.io.InputStream in,
int len)
throws java.lang.Exception
SessionStoragestore in interface SessionStoragejrun.servlet.session.SessionStorageid - The session IDin - InputStream containing the session datalen - The length of the session data
public java.io.InputStream retrieve(java.lang.String id)
throws java.lang.Exception
SessionStorageretrieve in interface SessionStoragejrun.servlet.session.SessionStorageid - The session ID
public void remove(java.lang.String id)
throws java.lang.Exception
SessionStorageremove in interface SessionStoragejrun.servlet.session.SessionStorageid - The session ID
public void purge()
throws java.lang.Exception
SessionStoragepurge in interface SessionStorage
protected void connect()
throws java.io.IOException
protected java.lang.String getKey(java.lang.String id)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||