public class SimpleFileHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
static processing.core.PApplet |
parent |
| Constructor and Description |
|---|
SimpleFileHandler(String fileName) |
SimpleFileHandler(String fileName,
String contentType) |
| Modifier and Type | Method and Description |
|---|---|
com.sun.net.httpserver.HttpExchange |
getExchange() |
void |
handle(com.sun.net.httpserver.HttpExchange exchange) |
Map<String,String> |
queryToMap()
get the query parameters of the recent exchange as map of fields as keys and values
e.g.
|
void |
setCallbackMethod(Method callbackMethod) |
String |
toString() |
public SimpleFileHandler(String fileName) throws FileNotFoundException
FileNotFoundExceptionpublic SimpleFileHandler(String fileName, String contentType) throws FileNotFoundException
FileNotFoundExceptionpublic void setCallbackMethod(Method callbackMethod)
public void handle(com.sun.net.httpserver.HttpExchange exchange)
throws IOException
handle in interface com.sun.net.httpserver.HttpHandlerIOExceptionpublic Map<String,String> queryToMap()
public com.sun.net.httpserver.HttpExchange getExchange()
Processing library SimpleHTTPServer by Ramin Soleymani. (c) 2016