public class HttpServerConnection
extends java.lang.Object
implements java.lang.Runnable
| Constructor and Description |
|---|
HttpServerConnection(HttpConnectionHandler pHandler,
java.lang.String pLocalAddress,
int pPort,
boolean pSsl,
WBEMConfiguration pProperties)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the socket and shuts down the listening threads
|
java.lang.String |
getLocalHostName()
Returns the local hostname the socket is bound to
|
java.lang.String |
getLocalIp()
Returns the local ip address the socket is bound to
|
int |
getPort()
Returns the port
|
boolean |
isSSL()
Return whether this connection is SSL secured
|
void |
run() |
void |
setName(java.lang.String pName)
Set the name of the thread
|
void |
start()
Starts a thread that waits for incoming connections
|
public HttpServerConnection(HttpConnectionHandler pHandler, java.lang.String pLocalAddress, int pPort, boolean pSsl, WBEMConfiguration pProperties) throws java.io.IOException
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 contextjava.io.IOExceptionpublic void setName(java.lang.String pName)
pName - The new valuepublic int getPort()
public java.lang.String getLocalIp()
throws java.net.UnknownHostException
java.net.UnknownHostExceptionpublic java.lang.String getLocalHostName()
throws java.net.UnknownHostException
java.net.UnknownHostExceptionpublic boolean isSSL()
true if SSL is enabled, false otherwisepublic void start()
public void run()
run in interface java.lang.Runnablepublic void close()
Copyright © 2005, 2013 IBM Corporation. All Rights Reserved.