org.locomotive.loco
Class ServerHandler

java.lang.Object
  |
  +--org.locomotive.loco.ServerHandler

public class ServerHandler
extends java.lang.Object
implements Handler

The Server Handler. The server provides a window into the server itself, rather than to any particular module handler. It is accessed by the handler url-name "srv". Valid commands include:

See Also:
Loco.setStopAccepting()

Constructor Summary
ServerHandler()
           
 
Method Summary
protected static java.lang.String getBogusCommandMessage()
           
protected static java.lang.String getExpiredMessage()
           
protected static java.lang.String getStatusVars()
          send back a nice status page
protected static java.lang.String handleDBConnPoolReloadRequest(User user)
           
protected static java.lang.String handleHRTReloadRequest(User user)
           
 void handleRequest(HandlerData hd_in)
          this is the entry point for the server
protected static java.lang.String handleShutdownRequest(User user)
           
protected static java.lang.String handleTemplateReloadRequest(User user)
           
 boolean init(Log initlog)
          Place holder.
 boolean shutdown(Log initlog)
          Place holder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerHandler

public ServerHandler()
Method Detail

handleRequest

public void handleRequest(HandlerData hd_in)
this is the entry point for the server
Specified by:
handleRequest in interface Handler

handleShutdownRequest

protected static java.lang.String handleShutdownRequest(User user)

handleTemplateReloadRequest

protected static java.lang.String handleTemplateReloadRequest(User user)

handleHRTReloadRequest

protected static java.lang.String handleHRTReloadRequest(User user)

handleDBConnPoolReloadRequest

protected static java.lang.String handleDBConnPoolReloadRequest(User user)

getStatusVars

protected static java.lang.String getStatusVars()
send back a nice status page

getBogusCommandMessage

protected static java.lang.String getBogusCommandMessage()

getExpiredMessage

protected static java.lang.String getExpiredMessage()

init

public boolean init(Log initlog)
Place holder. Currently the ServerHandler does not need any special initializations.
Specified by:
init in interface Handler

shutdown

public boolean shutdown(Log initlog)
Place holder. Currently the ServerHandler does not need any special initializations.
Specified by:
shutdown in interface Handler