com.nesscomputing.httpserver
Interface HttpServer

All Known Implementing Classes:
GalaxyJetty7HttpServer

public interface HttpServer

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


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 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

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

getExternalAddress

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

getInternalHttpPort

int getInternalHttpPort()
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

int getInternalHttpsPort()
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

int getExternalHttpPort()
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

int getExternalHttpsPort()
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


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