| java.lang.Object sunlabs.brazil.session.SessionManager sunlabs.brazil.session.CacheManager sunlabs.brazil.session.PropertiesCacheManager
PropertiesCacheManager | public class PropertiesCacheManager extends CacheManager implements Handler,Serializable(Code) | | Another version of the CacheManager. Saves out any session state
that is a "java properties" into a directory, one file per entry.
Restores them on startup. This is a "poor man's" serialization,
that saves only ascii state represented in properties files.
This permits a wider viriety of changes to be made to the
server code, yet still have the ability to read in the proper
session information.
This handler/sessionManager can take an ascii-readable "snapshot" of
the server state, for all state that is a java properties object.
It doesn't perturb the existing state.
Properties:
- storeDir
- The directory to use to store the state files. It is created as needed
when the state is saved. Defalts to "store".
- match
- A glob pattern that matches the url (or url?query if a query is used.
Defaults to "*\?*save=true".
- filePrefix
- A prefix pattern to use for all session files. Defaults to the
handler prefix.
author: Stephen Uhler (stephen.uhler@sun.com) version: %V% PropertiesCacheManager.java |
Method Summary | |
public boolean | init(Server server, String prefix) | public boolean | respond(Request request) | int | save(Request request) Save all of the properties files!
We make a TOC file that has type info, so we can reconstitue the
proper subclasses of Properties. |
save | int save(Request request)(Code) | | Save all of the properties files!
We make a TOC file that has type info, so we can reconstitue the
proper subclasses of Properties.
|
|
|