org.webbitserver
Class WebServers

java.lang.Object
  extended by org.webbitserver.WebServers

public class WebServers
extends Object


Constructor Summary
WebServers()
           
 
Method Summary
static WebServer createWebServer(Executor executor, int port)
          Returns a new WebServer object, which runs on the provided port and adds the executor to the List of executor services to be called when the server is running.
static WebServer createWebServer(Executor executor, SocketAddress socketAddress, URI publicUri)
          Returns a new WebServer object, adding the executor to the list of executor services, running on the stated socket address and accessible from the provided public URI.
static WebServer createWebServer(int port)
          Returns a new WebServer object, which runs on the provided port.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebServers

public WebServers()
Method Detail

createWebServer

public static WebServer createWebServer(int port)
Returns a new WebServer object, which runs on the provided port.

Parameters:
port -
Returns:
WebServer object
See Also:
NettyWebServer

createWebServer

public static WebServer createWebServer(Executor executor,
                                        int port)
Returns a new WebServer object, which runs on the provided port and adds the executor to the List of executor services to be called when the server is running.

Parameters:
executor -
port -
Returns:
WebServer object
See Also:
NettyWebServer

createWebServer

public static WebServer createWebServer(Executor executor,
                                        SocketAddress socketAddress,
                                        URI publicUri)
Returns a new WebServer object, adding the executor to the list of executor services, running on the stated socket address and accessible from the provided public URI.

Parameters:
executor -
socketAddress -
publicUri -
Returns:
WebServer object
See Also:
NettyWebServer


Copyright © 2012. All Rights Reserved.