|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sblim.cimclient.internal.http.HttpServerConnection
public class HttpServerConnection
Class HttpServerConnection implements the outer shell of a HTTP server. It accepts incoming connections and puts them in a queue to be serviced by an independent thread
Constructor Summary | |
---|---|
HttpServerConnection(HttpConnectionHandler pHandler,
String pLocalAddress,
int pPort,
boolean pSsl,
WBEMConfiguration pProperties)
Ctor. |
Method Summary | |
---|---|
void |
close()
Closes the socket and shuts down the listening threads |
String |
getLocalHostName()
Returns the local hostname the socket is bound to |
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(String pName)
Set the name of the thread |
void |
start()
Starts a thread that waits for incoming connections |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpServerConnection(HttpConnectionHandler pHandler, String pLocalAddress, int pPort, boolean pSsl, WBEMConfiguration pProperties) throws 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 context
IOException
Method Detail |
---|
public void setName(String pName)
pName
- The new valuepublic int getPort()
public String getLocalIp() throws UnknownHostException
UnknownHostException
public String getLocalHostName() throws UnknownHostException
UnknownHostException
public boolean isSSL()
true
if SSL is enabled, false
otherwisepublic void start()
public void run()
run
in interface Runnable
public void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |