org.locomotive.loco.handler
Class DefaultHandler

java.lang.Object
  |
  +--org.locomotive.loco.handler.DefaultHandler

public class DefaultHandler
extends java.lang.Object
implements Handler

A sample default handler. This is the handler that is invoked when a handler is not specified on the url. It is autoloaded at server boot, but can be overridden in the HandlerRoutingTable.


Constructor Summary
DefaultHandler()
           
 
Method Summary
 void handleRequest(HandlerData hd_in)
          This is the entry point for the server upon receipt of a new request.
 boolean init(Log initlog)
          Called during Handler initiation.
 boolean shutdown(Log initlog)
          Called during handler shutdown.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultHandler

public DefaultHandler()
Method Detail

handleRequest

public void handleRequest(HandlerData hd_in)
This is the entry point for the server upon receipt of a new request.
Specified by:
handleRequest in interface Handler
Parameters:
hd_in - a HandlerData object, containing request specific information

init

public boolean init(Log initlog)
Called during Handler initiation. This particular method simply returns true
Specified by:
init in interface Handler
Parameters:
initlog - - a Log instance used to log details of initiation

shutdown

public boolean shutdown(Log initlog)
Called during handler shutdown. Currently doesn't do anything
Specified by:
shutdown in interface Handler
Parameters:
initlog - - a Log instance used to log details of initiation