com.nesscomputing.httpserver
Class AbstractJetty8HttpServer

java.lang.Object
  extended by com.nesscomputing.httpserver.AbstractJetty8HttpServer
All Implemented Interfaces:
HttpServer
Direct Known Subclasses:
GalaxyJetty8HttpServer, SoloJetty8HttpServer

public abstract class AbstractJetty8HttpServer
extends Object
implements HttpServer


Constructor Summary
protected AbstractJetty8HttpServer(HttpServerConfig httpServerConfig, javax.servlet.Servlet catchallServlet)
           
 
Method Summary
abstract  Map<String,HttpConnector> getConnectors()
          Return a map of connectors configured for this server.
 String getExternalAddress()
           
 int getExternalHttpPort()
          Return the actual external http port this server listens to.
 int getExternalHttpsPort()
          Return the actual external https port this server listens to.
 String getInternalAddress()
           
 int getInternalHttpPort()
          Return the actual internal http port this server listens to.
 int getInternalHttpsPort()
          Return the actual internal https port this server listens to.
 void start()
          Bring up the HTTP Server.
 void stop()
          Shut down the HTTP Server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractJetty8HttpServer

@Inject
protected AbstractJetty8HttpServer(HttpServerConfig httpServerConfig,
                                          javax.servlet.Servlet catchallServlet)
Method Detail

start

public void start()
Description copied from interface: HttpServer
Bring up the HTTP Server.

Specified by:
start in interface HttpServer

stop

public void stop()
Description copied from interface: HttpServer
Shut down the HTTP Server.

Specified by:
stop in interface HttpServer

getConnectors

public abstract Map<String,HttpConnector> getConnectors()
Description copied from interface: HttpServer
Return a map of connectors configured for this server. The key in the map can be used to distinguish the connectors.

Specified by:
getConnectors in interface HttpServer

getInternalHttpPort

public int getInternalHttpPort()
Description copied from interface: HttpServer
Return the actual internal http port this server listens to. Mostly useful when you configure the http server on a port of "0" to get an unused port.

Specified by:
getInternalHttpPort in interface HttpServer
Returns:
the actual port this server listens on.

getInternalHttpsPort

public int getInternalHttpsPort()
Description copied from interface: HttpServer
Return the actual internal https port this server listens to. Mostly useful when you configure the http server on a port of "0" to get an unused port.

Specified by:
getInternalHttpsPort in interface HttpServer
Returns:
the actual port this server listens on.

getExternalHttpPort

public int getExternalHttpPort()
Description copied from interface: HttpServer
Return the actual external http port this server listens to. Mostly useful when you configure the http server on a port of "0" to get an unused port.

Specified by:
getExternalHttpPort in interface HttpServer
Returns:
the actual port this server listens on.

getExternalHttpsPort

public int getExternalHttpsPort()
Description copied from interface: HttpServer
Return the actual external https port this server listens to. Mostly useful when you configure the http server on a port of "0" to get an unused port.

Specified by:
getExternalHttpsPort in interface HttpServer
Returns:
the actual port this server listens on

getInternalAddress

public String getInternalAddress()
Specified by:
getInternalAddress in interface HttpServer
Returns:
the internal address this HttpServer listens on. null if no such interface, empty string for wildcard bind.

getExternalAddress

public String getExternalAddress()
Specified by:
getExternalAddress in interface HttpServer
Returns:
the external address this HttpServer listens on. null if no such interface, empty string for wildcard bind.


Copyright © 2012 Ness Computing, Inc.. All Rights Reserved.