public class CgiHandler extends java.lang.Object implements Handler
The following request properties are used:
CONFIG_name
, where name is the
property key, in upper case, with the prefix removed.
This allows cgi scripts to be customized in the server's
configuration file.
Constructor and Description |
---|
CgiHandler() |
public boolean init(Server server, java.lang.String prefix)
respond(Request)
to allow
upstream handlers to modify the parameters.init
in interface Handler
server
- The HTTP server that created this Handler
.
Typical Handler
s will use Server.props
to obtain run-time configuration information.prefix
- The handlers name.
The string this Handler
may prepend to all
of the keys that it uses to extract configuration information
from Server.props
. This is set (by the Server
and ChainHandler
) to help avoid configuration parameter
namespace collisions.true
if this Handler
initialized
successfully, false
otherwise. If
false
is returned, this Handler
should not be used.public boolean respond(Request request)
Input parameters examined in the request properties: