com.nesscomputing.httpserver
Class GalaxyJetty8HttpServer

java.lang.Object
  extended by com.nesscomputing.httpserver.GalaxyJetty8HttpServer
All Implemented Interfaces:
HttpServer

public class GalaxyJetty8HttpServer
extends Object
implements HttpServer


Constructor Summary
GalaxyJetty8HttpServer(HttpServerConfig httpServerConfig, com.nesscomputing.galaxy.GalaxyConfig galaxyConfig, javax.servlet.Servlet catchallServlet)
           
 
Method Summary
 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 setLifecycle(com.nesscomputing.lifecycle.Lifecycle lifecycle)
           
 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

GalaxyJetty8HttpServer

@Inject
public GalaxyJetty8HttpServer(HttpServerConfig httpServerConfig,
                                     com.nesscomputing.galaxy.GalaxyConfig galaxyConfig,
                                     javax.servlet.Servlet catchallServlet)
Method Detail

setLifecycle

@Inject(optional=true)
public void setLifecycle(com.nesscomputing.lifecycle.Lifecycle lifecycle)

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

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.