com.nesscomputing.httpserver
Class GalaxyJetty7HttpServer

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

public class GalaxyJetty7HttpServer
extends Object
implements HttpServer


Constructor Summary
GalaxyJetty7HttpServer(HttpServerConfig httpServerConfig, com.nesscomputing.galaxy.GalaxyConfig galaxyConfig, javax.servlet.Servlet catchallServlet)
           
 
Method Summary
 void addHandlers(Set<org.eclipse.jetty.server.Handler> handlers)
           
 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 setInjector(com.google.inject.Injector injector)
           
 void setLifecycle(com.nesscomputing.lifecycle.Lifecycle lifecycle)
           
 void setMBeanServer(MBeanServer mbeanServer)
           
 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

GalaxyJetty7HttpServer

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

setInjector

@Inject(optional=true)
public void setInjector(com.google.inject.Injector injector)

setMBeanServer

@Inject(optional=true)
public void setMBeanServer(MBeanServer mbeanServer)

addHandlers

@Inject(optional=true)
public void addHandlers(Set<org.eclipse.jetty.server.Handler> handlers)

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.