sunlabs.brazil.handler
public class DeferredHandler extends Object implements Handler
Normally, when a handler's class is first resolved, if any of the dependent classes are not available, an error will occur, terminating the server. Using this handler, other handlers can be conditionally configured based on the availability of other specified classes at run time.
NOTE: This functionallity should be integrated into the
ChainHandler
, eliminating the need for this one.
Request Properties
Method Summary | |
---|---|
boolean | init(Server server, String prefix)
Remember the server for deferred initialization. |
boolean | respond(Request request)
Dispatch to the handler, installing it if needed |