class JDiscHttpRequestHandler extends LoggingRequestHandler {

    static HttpRequest setOperation(HttpRequest request, com.yahoo.jdisc.http.HttpRequest.Method method) {
        switch (method) {
            case GET: return request.setHttpOperation(HttpRequest.HttpOp.GET);
            case POST: return request.setHttpOperation(HttpRequest.HttpOp.POST);
            case PUT: return request.setHttpOperation(HttpRequest.HttpOp.PUT);
            case DELETE: return request.setHttpOperation(HttpRequest.HttpOp.DELETE);
            default: throw new IllegalStateException("Unhandled method " + method);
        }
    }

    public  JDiscHttpRequestHandler(HttpRequestHandler handler, LoggingRequestHandler.Context parentCtx);

}