|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sblim.wbem.http.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 handler,
int port)
|
|
HttpServerConnection(HttpConnectionHandler handler,
int port,
boolean ssl)
|
|
HttpServerConnection(HttpConnectionHandler handler,
int port,
boolean ssl,
SessionProperties properties)
Ctor. |
Method Summary | |
---|---|
void |
close()
Shuts down the server |
java.lang.String |
getHostIP()
Returns the host ip |
int |
getPort()
Returns the port |
boolean |
isSSL()
Returns if SSL is enanbled |
void |
run()
|
void |
setName(java.lang.String name)
Set the name of the thread |
void |
start()
Starts the server thread |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HttpServerConnection(HttpConnectionHandler handler, int port, boolean ssl, SessionProperties properties) throws java.io.IOException
handler
- The handler for incoming connectionsport
- The port to listen onssl
- If true
SSL is enabledproperties
- The configuration to use
java.io.IOException
- On failure to create the server socketpublic HttpServerConnection(HttpConnectionHandler handler, int port, boolean ssl) throws java.io.IOException
public HttpServerConnection(HttpConnectionHandler handler, int port) throws java.io.IOException
Method Detail |
public void setName(java.lang.String name)
name
- The namepublic int getPort()
public java.lang.String getHostIP() throws java.net.UnknownHostException
java.net.UnknownHostException
public boolean isSSL()
true
if SSL is enabledpublic 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 |