src/java.management.rest/share/classes/com/oracle/jmx/remote/rest/http/RestResource.java
branchjmx-rest-api
changeset 55995 a798bdd52997
parent 55994 9721e36abeb0
child 55997 f881344569d9
equal deleted inserted replaced
55994:9721e36abeb0 55995:a798bdd52997
     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);