|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.unkrig.commons.net.http.HttpServer
public final class HttpServer
Implementation of an HTTP server.
HttpServer(InetSocketAddress, HttpClientConnectionHandler)| Constructor Summary | |
|---|---|
HttpServer(java.net.InetSocketAddress endpoint,
HttpClientConnectionHandler httpClientConnectionHandler)
Accepts connections on the endpoint; obtains a new Servlett from the
httpClientConnectionHandlerFactory for each accepted connection, and then calls
Servlett.handleRequest(HttpRequest) for each received request. |
|
| Method Summary | |
|---|---|
java.net.InetSocketAddress |
getEndpointAddress()
|
void |
run()
"To run" an instance means to call this method and wait until it returns. |
void |
stop()
Returns when this Stoppable has completely stopped. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpServer(java.net.InetSocketAddress endpoint,
HttpClientConnectionHandler httpClientConnectionHandler)
throws java.io.IOException
endpoint; obtains a new Servlett from the
httpClientConnectionHandlerFactory for each accepted connection, and then calls
Servlett.handleRequest(HttpRequest) for each received request.
java.io.IOException| Method Detail |
|---|
public void run()
throws java.io.IOException
RunnableWhichThrows
run in interface RunnableWhichThrows<java.io.IOException>java.io.IOExceptionpublic void stop()
StoppableStoppable has completely stopped.
stop in interface Stoppablepublic java.net.InetSocketAddress getEndpointAddress()
TcpServer.getEndpointAddress()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||