sunlabs.brazil.handler

Class HomeDirHandler

public class HomeDirHandler extends Object implements Handler

Handler for converting ~username queries. When invoked upstream of the {@link 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 {@link UrlMapperHandler}.

Version: 2.2, 04/11/03

Author: Stephen Uhler

Method Summary
booleaninit(Server server, String prefix)
Get and set the configuration parameters.
booleanrespond(Request request)
If this is a ~user request, modify the root and url properties of the request object.

Method Detail

init

public boolean init(Server server, String prefix)
Get and set the configuration parameters.

respond

public boolean respond(Request request)
If this is a ~user request, modify the root and url properties of the request object.