sunlabs.brazil.handler

Class ChownHandler

public class ChownHandler extends Object implements Handler

Handler for changing the group and owner of the server. This handler expects the "server.so" file used by the Java Webserver 2.0 Make sure you rename the file libserver.so in the distribution to libcom_sun_server_ServerProcess.so, and put it where it will be found by System.loadLibrary.
Note: If the native library is unalvailable on your platform, try the RunAs handler, that includes the native source code.

Properties:

userName
name of the user to run as
groupName
The name of the group to run as

Version: 2.2

Author: Stephen Uhler

Method Summary
booleaninit(Server server, String prefix)
set up the Unix user and group.
booleanrespond(Request request)
Nothing to respond to

Method Detail

init

public boolean init(Server server, String prefix)
set up the Unix user and group. We could return false, so our respond method would never be called, but some containers cause the server to exit on false returns.

respond

public boolean respond(Request request)
Nothing to respond to