com.noelios.restlet.ext.asyncweb
Class HttpServerHelper

java.lang.Object
  extended by org.restlet.util.Helper
      extended by com.noelios.restlet.ConnectorHelper
          extended by com.noelios.restlet.ServerHelper
              extended by com.noelios.restlet.http.HttpServerHelper
                  extended by com.noelios.restlet.ext.asyncweb.AsyncWebServerHelper
                      extended by com.noelios.restlet.ext.asyncweb.HttpServerHelper
All Implemented Interfaces:
org.safehaus.asyncweb.container.ServiceContainer

public class HttpServerHelper
extends AsyncWebServerHelper

AsyncWeb HTTP server connector. This implementation passes by all of AsyncWeb ServiceContainer, HttpServiceHandler etc. mechanisms and implements a HttpServerHelper and a ServiceContainer directly. It takes care about setting up a NIOTransport.

Note: This implementation is not usable inside an AsyncWeb standard environment because it represents a container and not a handler; it takes full control over the container lifecycle.

Author:
Lars Heuer (heuer[at]semagia.com) Semagia

Constructor Summary
HttpServerHelper(Server server)
          Constructor.
 
Method Summary
 void start()
          Starts the Connector.
 
Methods inherited from class com.noelios.restlet.ext.asyncweb.AsyncWebServerHelper
addServiceHandler, addTransport, dispatchRequest, getIoWorkerCount, getTransport, setTransport, stop
 
Methods inherited from class com.noelios.restlet.http.HttpServerHelper
getConverter, handle, setConverter
 
Methods inherited from class com.noelios.restlet.ServerHelper
getContext, getLogger, getParameters, getServer, handle, setServer
 
Methods inherited from class com.noelios.restlet.ConnectorHelper
createContext, getProtocols
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpServerHelper

public HttpServerHelper(Server server)
Constructor.

Parameters:
server - The server to help.
Method Detail

start

public void start()
           throws org.safehaus.asyncweb.container.ContainerLifecycleException
Starts the Connector.

Specified by:
start in interface org.safehaus.asyncweb.container.ServiceContainer
Overrides:
start in class AsyncWebServerHelper
Throws:
org.safehaus.asyncweb.container.ContainerLifecycleException


Copyright © 2005-2007 Noelios Technologies.