| Modifier and Type | Field and Description |
|---|---|
| private String | directory
The pathname of the directory in which Sessions are stored. |
| private File | directoryFile
A File representing the directory in which Sessions are stored. |
| private static final String | FILE_EXT
The extension to use for serialized session filenames. |
| private static final Log | |
| private static final StringManager | |
| private static final String | storeName
Name to register for this Store, used for logging.
|
| private static final String | threadName
Name to register for the background thread. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private File | directory()
Return a File object representing the pathname to our session persistence directory, if any. |
| private File | |
| public String | |
| public int | getSize()
Implements org. Return the number of Sessions present in this Store. |
| public String | getStoreName()
Overrides org. Return the name for this Store, used for logging. |
| public String | |
| public String[] | keys()
Implements org. Return an array containing the session identifiers of all Sessions currently saved in this Store. |
| public Session | load(String
Session identifier of the session to load id)Implements org. Load and return the Session associated with the specified session identifier from this Store, without removing it. |
| public void | remove(String
Session identifier of the Session to be removed id)Implements org. Remove the Session with the specified session identifier from this Store, if present. |
| public void | save(Session
Session to be saved session)Implements org. Save the specified Session into this Store. |
| public void |
| directory | back to summary |
|---|---|
| private String directory The pathname of the directory in which Sessions are stored. This may be an absolute pathname, or a relative path that is resolved against the temporary work directory for this application. | |
| directoryFile | back to summary |
|---|---|
| private File directoryFile A File representing the directory in which Sessions are stored. | |
| FILE_EXT | back to summary |
|---|---|
| private static final String FILE_EXT The extension to use for serialized session filenames. | |
| log | back to summary |
|---|---|
| private static final Log log | |
| sm | back to summary |
|---|---|
| private static final StringManager sm | |
| storeName | back to summary |
|---|---|
| private static final String storeName Hides org. Name to register for this Store, used for logging. | |
| threadName | back to summary |
|---|---|
| private static final String threadName Name to register for the background thread. | |
| FileStore | back to summary |
|---|---|
| public FileStore() | |
| clear | back to summary |
|---|---|
| public void clear() throws IOException Implements org. Remove all of the Sessions in this Store.
| |
| directory | back to summary |
|---|---|
| private File directory() throws IOException Return a File object representing the pathname to our session persistence directory, if any. The directory will be created if it does not already exist. | |
| file | back to summary |
|---|---|
| private File file(String id) throws IOException Return a File object representing the pathname to our session persistence file, if any.
| |
| getDirectory | back to summary |
|---|---|
public String getDirectory()
| |
| getSize | back to summary |
|---|---|
| public int getSize() throws IOException Implements org. Return the number of Sessions present in this Store.
| |
| getStoreName | back to summary |
|---|---|
| public String getStoreName() Overrides org. Return the name for this Store, used for logging.
| |
| getThreadName | back to summary |
|---|---|
public String getThreadName()
| |
| keys | back to summary |
|---|---|
| public String[] keys() throws IOException Implements org. Return an array containing the session identifiers of all Sessions currently saved in this Store. If there are no such Sessions, a zero-length array is returned.
| |
| load | back to summary |
|---|---|
| public Session load(String id) throws ClassNotFoundException, IOException Implements org. Load and return the Session associated with the specified session identifier from this Store, without removing
it. If there is no such stored Session, return
| |
| remove | back to summary |
|---|---|
| public void remove(String id) throws IOException Implements org. Remove the Session with the specified session identifier from this Store, if present. If no such Session is present, this method takes no action.
| |
| save | back to summary |
|---|---|
| public void save(Session session) throws IOException Implements org. Save the specified Session into this Store. Any previously saved information for the associated session identifier is replaced.
| |
| setDirectory | back to summary |
|---|---|
| public void setDirectory(String path) Set the directory path for this Store.
| |