| 
 | Apache Tomcat 6.0.53 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.catalina.session.StoreBase
org.apache.catalina.session.FileStore
public final class FileStore
Concrete implementation of the Store interface that utilizes a file per saved Session in a configured directory. Sessions that are saved are still subject to being expired based on inactivity.
| Field Summary | 
|---|
| Fields inherited from class org.apache.catalina.session.StoreBase | 
|---|
| lifecycle, manager, sm, started, support | 
| Fields inherited from interface org.apache.catalina.Lifecycle | 
|---|
| AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, DESTROY_EVENT, INIT_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT | 
| Constructor Summary | |
|---|---|
| FileStore() | |
| Method Summary | |
|---|---|
|  void | clear()Remove all of the Sessions in this Store. | 
|  java.lang.String | getDirectory() | 
|  java.lang.String | getInfo()Return the info for this Store. | 
|  int | getSize()Return the number of Sessions present in this Store. | 
|  java.lang.String | getStoreName()Return the name for this Store, used for logging. | 
|  java.lang.String | getThreadName() | 
|  java.lang.String[] | keys()Return an array containing the session identifiers of all Sessions currently saved in this Store. | 
|  Session | load(java.lang.String id)Load and return the Session associated with the specified session identifier from this Store, without removing it. | 
|  void | remove(java.lang.String id)Remove the Session with the specified session identifier from this Store, if present. | 
|  void | save(Session session)Save the specified Session into this Store. | 
|  void | setDirectory(java.lang.String path)Set the directory path for this Store. | 
| Methods inherited from class org.apache.catalina.session.StoreBase | 
|---|
| addLifecycleListener, addPropertyChangeListener, findLifecycleListeners, getManager, getObjectInputStream, processExpires, removeLifecycleListener, removePropertyChangeListener, setManager, start, stop | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public FileStore()
| Method Detail | 
|---|
public java.lang.String getDirectory()
public void setDirectory(java.lang.String path)
path - The new directory pathpublic java.lang.String getInfo()
StoreBase
getInfo in interface StoregetInfo in class StoreBasepublic java.lang.String getThreadName()
public java.lang.String getStoreName()
getStoreName in class StoreBase
public int getSize()
            throws java.io.IOException
java.io.IOException - if an input/output error occurs
public void clear()
           throws java.io.IOException
java.io.IOException - if an input/output error occurs
public java.lang.String[] keys()
                        throws java.io.IOException
java.io.IOException - if an input/output error occurred
public Session load(java.lang.String id)
             throws java.lang.ClassNotFoundException,
                    java.io.IOException
null.
id - Session identifier of the session to load
java.lang.ClassNotFoundException - if a deserialization error occurs
java.io.IOException - if an input/output error occurs
public void remove(java.lang.String id)
            throws java.io.IOException
id - Session identifier of the Session to be removed
java.io.IOException - if an input/output error occurs
public void save(Session session)
          throws java.io.IOException
session - Session to be saved
java.io.IOException - if an input/output error occurs| 
 | Apache Tomcat 6.0.53 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||