Class HttpServerConnection
java.lang.Object
org.sblim.cimclient.internal.http.HttpServerConnection
- All Implemented Interfaces:
Runnable
-
Constructor Summary
ConstructorsConstructorDescriptionHttpServerConnection(HttpConnectionHandler pHandler, String pLocalAddress, int pPort, boolean pSsl, WBEMConfiguration pProperties) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the socket and shuts down the listening threadsReturns the local hostname the socket is bound toReturns the local ip address the socket is bound tointgetPort()Returns the portbooleanisSSL()Return whether this connection is SSL securedvoidrun()voidSet the name of the threadvoidstart()Starts a thread that waits for incoming connections
-
Constructor Details
-
HttpServerConnection
public HttpServerConnection(HttpConnectionHandler pHandler, String pLocalAddress, int pPort, boolean pSsl, WBEMConfiguration pProperties) throws IOException Ctor.- Parameters:
pHandler- The connection handlerpLocalAddress- The local address to bind the port to. If null the port is bound to all local addresses. For use on multi-homed systemspPort- The local port. If zero any free port will be chosen.pSsl- SSL secured connection ?pProperties- The configuration context- Throws:
IOException
-
-
Method Details
-
setName
-
getPort
public int getPort()Returns the port- Returns:
- The port
-
getLocalIp
Returns the local ip address the socket is bound to- Returns:
- The ip address
- Throws:
UnknownHostException
-
getLocalHostName
Returns the local hostname the socket is bound to- Returns:
- The host name
- Throws:
UnknownHostException
-
isSSL
public boolean isSSL()Return whether this connection is SSL secured- Returns:
trueif SSL is enabled,falseotherwise
-
start
public void start()Starts a thread that waits for incoming connections -
run
-
close
public void close()Closes the socket and shuts down the listening threads
-