Class HttpServerConnection
java.lang.Object
org.sblim.wbem.http.HttpServerConnection
- All Implemented Interfaces:
Runnable
-
Constructor Summary
ConstructorsConstructorDescriptionHttpServerConnection
(HttpConnectionHandler handler, int port) HttpServerConnection
(HttpConnectionHandler handler, int port, boolean ssl) HttpServerConnection
(HttpConnectionHandler handler, int port, boolean ssl, SessionProperties properties) Ctor. -
Method Summary
-
Constructor Details
-
HttpServerConnection
public HttpServerConnection(HttpConnectionHandler handler, int port, boolean ssl, SessionProperties properties) throws IOException Ctor.- Parameters:
handler
- The handler for incoming connectionsport
- The port to listen onssl
- Iftrue
SSL is enabledproperties
- The configuration to use- Throws:
IOException
- On failure to create the server socket
-
HttpServerConnection
public HttpServerConnection(HttpConnectionHandler handler, int port, boolean ssl) throws IOException - Throws:
IOException
-
HttpServerConnection
- Throws:
IOException
-
-
Method Details
-
setName
-
getPort
public int getPort()Returns the port- Returns:
- The port
-
getHostIP
Returns the host ip- Returns:
- The host ip
- Throws:
UnknownHostException
-
isSSL
public boolean isSSL()Returns if SSL is enanbled- Returns:
true
if SSL is enabled
-
start
public void start()Starts the server thread -
run
-
close
public void close()Shuts down the server
-