public class AsyncHttpServer extends java.lang.Object implements HttpServer
| Constructor and Description |
|---|
AsyncHttpServer(int port) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getHostname() |
int |
getListeningPort() |
boolean |
isAlive() |
void |
onRequest(AsyncHttpServerRequest request,
AsyncHttpServerResponse response) |
void |
setUsbFileProvider(UsbFileProvider provider) |
void |
start() |
void |
stop() |
public void start()
throws java.io.IOException
start in interface HttpServerjava.io.IOExceptionpublic void stop()
throws java.io.IOException
stop in interface HttpServerjava.io.IOExceptionpublic boolean isAlive()
isAlive in interface HttpServerpublic java.lang.String getHostname()
getHostname in interface HttpServerpublic int getListeningPort()
getListeningPort in interface HttpServerpublic void setUsbFileProvider(UsbFileProvider provider)
setUsbFileProvider in interface HttpServerpublic void onRequest(AsyncHttpServerRequest request,
AsyncHttpServerResponse response)