public class DynamicResponseHandler extends Object
Constructor and Description |
---|
DynamicResponseHandler(ResponseBuilder responseBuilder,
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.
|
String |
toString() |
public DynamicResponseHandler(ResponseBuilder responseBuilder, String contentType)
public void handle(com.sun.net.httpserver.HttpExchange exchange) throws IOException
IOException
public Map<String,String> queryToMap()
public com.sun.net.httpserver.HttpExchange getExchange()
Processing library SimpleHTTPServer by Ramin Soleymani. (c) 2016