|
||||||||||
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,
java.lang.String pLocalAddress,
int pPort,
boolean pSsl,
WBEMConfiguration pProperties)
Ctor. |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 context
java.io.IOException
Method Detail |
---|
public void setName(java.lang.String pName)
pName
- The new valuepublic int getPort()
public java.lang.String getLocalIp() throws java.net.UnknownHostException
java.net.UnknownHostException
public java.lang.String getLocalHostName() throws java.net.UnknownHostException
java.net.UnknownHostException
public boolean isSSL()
true
if SSL is enabled, false
otherwisepublic void start()
public void run()
run
in interface java.lang.Runnable
public void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |