Interface to implement for handling pages.
| 55 | * Interface to implement for handling pages. |
| 56 | */ |
| 57 | public interface Handler { |
| 58 | /** |
| 59 | * Handler for pages. |
| 60 | * |
| 61 | * @param out stream to rewrite to |
| 62 | * @param request the request URI, minus the host and query parts |
| 63 | * @param headers any headers passed in |
| 64 | * @param get parameters via GET |
| 65 | * @param post parameters via POST |
| 66 | */ |
| 67 | void doPage(PrintStream out, String request, Map<String, String> headers, Map<String, String> get, Map<String, String> post); |
| 68 | } |
| 69 | |
| 70 | private static final Pattern ESCAPED_CHAR = Pattern.compile("%([0-9A-Fa-f]{2})"); |
| 71 | private class Server extends Thread { |
no outgoing calls
no test coverage detected