com.nesscomputing.httpserver
Interface HttpServer

All Known Implementing Classes:
AbstractJetty8HttpServer, GalaxyJetty8HttpServer, SoloJetty8HttpServer

public interface HttpServer

Represents an HTTP server. It can be started and stopped.


Method Summary
 Map<String,HttpConnector> getConnectors()
          Return a map of connectors configured for this server.
 String getExternalAddress()
          Deprecated. Use getConnectors().
 int getExternalHttpPort()
          Deprecated. Use getConnectors().
 int getExternalHttpsPort()
          Deprecated. Use getConnectors().
 String getInternalAddress()
          Deprecated. Use getConnectors().
 int getInternalHttpPort()
          Deprecated. Use getConnectors().
 int getInternalHttpsPort()
          Deprecated. Use getConnectors().
 void start()
          Bring up the HTTP Server.
 void stop()
          Shut down the HTTP Server.
 

Method Detail

start

void start()
Bring up the HTTP Server.


stop

void stop()
Shut down the HTTP Server.


getInternalAddress

@Deprecated
String getInternalAddress()
Deprecated. Use getConnectors().

Returns:
the internal address this HttpServer listens on. null if no such interface, empty string for wildcard bind.

getExternalAddress

@Deprecated
String getExternalAddress()
Deprecated. Use getConnectors().

Returns:
the external address this HttpServer listens on. null if no such interface, empty string for wildcard bind.

getInternalHttpPort

@Deprecated
int getInternalHttpPort()
Deprecated. Use getConnectors().

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.

Returns:
the actual port this server listens on.

getInternalHttpsPort

@Deprecated
int getInternalHttpsPort()
Deprecated. Use getConnectors().

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.

Returns:
the actual port this server listens on.

getExternalHttpPort

@Deprecated
int getExternalHttpPort()
Deprecated. Use getConnectors().

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.

Returns:
the actual port this server listens on.

getExternalHttpsPort

@Deprecated
int getExternalHttpsPort()
Deprecated. Use getConnectors().

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.

Returns:
the actual port this server listens on

getConnectors

Map<String,HttpConnector> getConnectors()
Return a map of connectors configured for this server. The key in the map can be used to distinguish the connectors.



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