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 lib
server.so
in the distribution to lib
com_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
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.
public boolean respond(
Request request)
Nothing to respond to