public class RestartHandler extends java.lang.Object implements Handler, sun.misc.SignalHandler
NOTES:
sun.misc.Signal* classes are used.
Properties:
| Constructor and Description |
|---|
RestartHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(sun.misc.Signal sig)
Restart the server after re-reading the config file
|
boolean |
init(Server server,
java.lang.String prefix)
Initializes the handler.
|
boolean |
respond(Request request)
Responds to an HTTP request.
|
public boolean init(Server server, java.lang.String prefix)
Handlerinit in interface Handlerserver - The HTTP server that created this Handler.
Typical Handlers 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)
Handlerpublic void handle(sun.misc.Signal sig)
handle in interface sun.misc.SignalHandler