public class SupplyHandler extends java.lang.Object implements Handler
| Constructor and Description |
|---|
SupplyHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
init(Server server,
java.lang.String prefix)
Initializes the handler.
|
boolean |
respond(Request request)
Dispatch and handle the 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)