src/java.management.rest/share/classes/com/oracle/jmx/remote/rest/http/RestResource.java
equal
deleted
inserted
replaced
5 */ |
5 */ |
6 package com.oracle.jmx.remote.rest.http; |
6 package com.oracle.jmx.remote.rest.http; |
7 |
7 |
8 import com.sun.net.httpserver.HttpExchange; |
8 import com.sun.net.httpserver.HttpExchange; |
9 import com.sun.net.httpserver.HttpHandler; |
9 import com.sun.net.httpserver.HttpHandler; |
|
10 |
10 import java.io.IOException; |
11 import java.io.IOException; |
11 |
12 |
12 /** |
13 /** |
13 * |
14 * |
14 * @author harsha |
15 * @author harsha |
34 httpResponse = doHead(exchange); |
35 httpResponse = doHead(exchange); |
35 break; |
36 break; |
36 } |
37 } |
37 HttpUtil.sendResponse(exchange,httpResponse); |
38 HttpUtil.sendResponse(exchange,httpResponse); |
38 } |
39 } |
39 |
40 |
40 public HttpResponse doGet(HttpExchange exchange); |
41 public HttpResponse doGet(HttpExchange exchange); |
41 public HttpResponse doPut(HttpExchange exchange); |
42 public HttpResponse doPut(HttpExchange exchange); |
42 public HttpResponse doPost(HttpExchange exchange); |
43 public HttpResponse doPost(HttpExchange exchange); |
43 public HttpResponse doDelete(HttpExchange exchange); |
44 public HttpResponse doDelete(HttpExchange exchange); |
44 public HttpResponse doHead(HttpExchange exchange); |
45 public HttpResponse doHead(HttpExchange exchange); |