Searched refs:exchange (Results 1 – 4 of 4) sorted by relevance
/art/tools/ahat/src/ |
D | BitmapHandler.java | 36 public void handle(HttpExchange exchange) throws IOException { in handle() argument 38 Query query = new Query(exchange.getRequestURI()); in handle() 47 exchange.getResponseHeaders().add("Content-Type", "image/png"); in handle() 48 exchange.sendResponseHeaders(200, 0); in handle() 49 OutputStream os = exchange.getResponseBody(); in handle() 53 exchange.getResponseHeaders().add("Content-Type", "text/html"); in handle() 54 exchange.sendResponseHeaders(404, 0); in handle() 55 PrintStream ps = new PrintStream(exchange.getResponseBody()); in handle() 63 System.err.println("Exception when handling " + exchange.getRequestURI() + ": "); in handle()
|
D | StaticHandler.java | 38 public void handle(HttpExchange exchange) throws IOException { in handle() argument 42 exchange.getResponseHeaders().add("Content-Type", "text/html"); in handle() 43 exchange.sendResponseHeaders(404, 0); in handle() 44 PrintStream ps = new PrintStream(exchange.getResponseBody()); in handle() 49 exchange.getResponseHeaders().add("Content-Type", mContentType); in handle() 50 exchange.sendResponseHeaders(200, 0); in handle() 51 OutputStream os = exchange.getResponseBody(); in handle()
|
D | AhatHttpHandler.java | 38 public void handle(HttpExchange exchange) throws IOException { in handle() argument 39 exchange.getResponseHeaders().add("Content-Type", "text/html;charset=utf-8"); in handle() 40 exchange.sendResponseHeaders(200, 0); in handle() 41 PrintStream ps = new PrintStream(exchange.getResponseBody()); in handle() 45 mAhatHandler.handle(doc, new Query(exchange.getRequestURI())); in handle() 50 System.err.println("Exception when handling " + exchange.getRequestURI() + ": "); in handle()
|
D | HelpHandler.java | 34 public void handle(HttpExchange exchange) throws IOException { in handle() argument 36 exchange.getResponseHeaders().add("Content-Type", "text/html;charset=utf-8"); in handle() 37 exchange.sendResponseHeaders(200, 0); in handle() 38 PrintStream ps = new PrintStream(exchange.getResponseBody()); in handle()
|