org.locomotive.loco.handler
Class UnknownHandler

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

public class UnknownHandler
extends java.lang.Object
implements Handler

This handler is invoked when a url cannot be mapped to a handler by the Locomotive. It returns the template LOCO_TEMPLATE_ROOT_PATH/error/unknown_handler_option.tmpl, or, if that template is missing, a basic warning message


Constructor Summary
UnknownHandler()
           
 
Method Summary
 void handleRequest(HandlerData hd)
          this is the entry point for the server.
 boolean init(Log initlog)
          we don't load anything, so just return.
 boolean shutdown(Log log)
          there's nothing to do here but return happily
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnknownHandler

public UnknownHandler()
Method Detail

handleRequest

public void handleRequest(HandlerData hd)
this is the entry point for the server.
Uses the LOCO_TEMPLATE_ROOT_PATH/error/unknown_handler_option.tmpl template. LOCO_TEMPLATE_ROOT_PATH is the template directory, as specified in the Loco configuration file.
Specified by:
handleRequest in interface Handler

init

public boolean init(Log initlog)
we don't load anything, so just return.
Specified by:
init in interface Handler

shutdown

public boolean shutdown(Log log)
there's nothing to do here but return happily
Specified by:
shutdown in interface Handler