sunlabs.brazil.handler
Class RestartingMultiHostHandler

java.lang.Object
  extended by sunlabs.brazil.handler.MultiHostHandler
      extended by sunlabs.brazil.handler.RestartingMultiHostHandler
All Implemented Interfaces:
Handler

public class RestartingMultiHostHandler
extends MultiHostHandler

Allow the configuration for one virtual host to be restarted.


Constructor Summary
RestartingMultiHostHandler()
           
 
Method Summary
protected  Server doServer(Request request, Server server)
          See if the server needs to be restarted.
 
Methods inherited from class sunlabs.brazil.handler.MultiHostHandler
init, respond
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestartingMultiHostHandler

public RestartingMultiHostHandler()
Method Detail

doServer

protected Server doServer(Request request,
                          Server server)
See if the server needs to be restarted. If so, create it, reinitialize it, and return it. this causes the sub-server to be restarted. Any pending requests continue to use the prior configuration. This fuctionallity probably doesn't belong here, but I haven't yet figured out where else it should go.

Parameters:
server - the sub-server for this host
request - The original request