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 HttpServer
java.io.IOException
public void stop() throws java.io.IOException
stop
in interface HttpServer
java.io.IOException
public boolean isAlive()
isAlive
in interface HttpServer
public java.lang.String getHostname()
getHostname
in interface HttpServer
public int getListeningPort()
getListeningPort
in interface HttpServer
public void setUsbFileProvider(UsbFileProvider provider)
setUsbFileProvider
in interface HttpServer
public void onRequest(AsyncHttpServerRequest request, AsyncHttpServerResponse response)