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 TypeMethodDescriptionvoid
close()
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 toint
getPort()
Returns the portboolean
isSSL()
Return whether this connection is SSL securedvoid
run()
void
Set the name of the threadvoid
start()
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:
true
if SSL is enabled,false
otherwise
-
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
-