MCPcopy Create free account
hub / github.com/RealTimeGenomics/rtg-tools / Handler

Interface Handler

src/test/java/com/rtg/util/test/HttpServer.java:57–68  ·  view source on GitHub ↗

Interface to implement for handling pages.

Source from the content-addressed store, hash-verified

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 {

Callers 1

processMethod · 0.65

Implementers 1

TalkbackTestsrc/test/java/com/rtg/util/diagnostic/

Calls

no outgoing calls

Tested by

no test coverage detected