sunlabs.brazil.handler
Class HomeDirHandler
public
class
HomeDirHandler
extends Object
implements Handler
Handler for converting ~username queries.
When invoked upstream of the
FileHandler
This provides Unix user's with individual home pages.
Properties:
- subdir
- Name of the directory in the user's home directory
that represents the user's "doc root"
- home
- The mount-point for home directories,
defaults to "/home/".
- root
- The name of the root property to set.
Defaults to "root".
- prefix
- The url prefix used to identify home directory queries.
Defaults to "/~".
Url's of the form:
/~[user]/stuff...
are transformed into
[home][user]/[subdir]/stuff....
Note: This functionallity has been mostly subsumed by the
UrlMapperHandler.
Version: 2.2, 04/11/03
Author: Stephen Uhler
Method Summary |
boolean | init(Server server, String prefix)
Get and set the configuration parameters. |
boolean | respond(Request request)
If this is a ~user request, modify the root and
url properties of the request object. |
public boolean init(
Server server, String prefix)
Get and set the configuration parameters.
public boolean respond(
Request request)
If this is a ~user request, modify the root
and
url
properties of the request object.