|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Implemented by session storage providers that wish to store and retrieve session objects and their data.
For a full example of how this interface can be implemented to provide a custom storage mechanism, see jrun.servlet.session.FileSessionStorage.
FileSessionStorage| Method Summary | |
void |
destroy()
Destroy the service. |
void |
init(java.util.Properties initConfigs)
Initialize the storage service |
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. |
| Method Detail |
public void init(java.util.Properties initConfigs)
throws java.lang.Exception
initConfigs - A List containing the InitConfigMetaData objects for persistence configurationpublic void destroy()
public void store(java.lang.String id,
java.io.InputStream in,
int len)
throws java.lang.Exception
id - 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
id - The session ID
public void remove(java.lang.String id)
throws java.lang.Exception
id - The session ID
public void purge()
throws java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||