@GET public Response handleGet() throws ODataException { return handle(ODataHttpMethod.GET); }
@POST public Response handlePost(@HeaderParam("X-HTTP-Method") final String xHttpMethod) throws ODataException { Response response; if (xHttpMethod == null) { response = handle(ODataHttpMethod.POST); } else { /* tunneling */ if ("MERGE".equals(xHttpMethod)) { response = handle(ODataHttpMethod.MERGE); } else if ("PATCH".equals(xHttpMethod)) { response = handle(ODataHttpMethod.PATCH); } else if (HttpMethod.DELETE.equals(xHttpMethod)) { response = handle(ODataHttpMethod.DELETE); } else if (HttpMethod.PUT.equals(xHttpMethod)) { response = handle(ODataHttpMethod.PUT); } else if (HttpMethod.GET.equals(xHttpMethod)) { response = handle(ODataHttpMethod.GET); } else if (HttpMethod.POST.equals(xHttpMethod)) { response = handle(ODataHttpMethod.POST); } else if (HttpMethod.HEAD.equals(xHttpMethod)) { response = handleHead(); } else if (HttpMethod.OPTIONS.equals(xHttpMethod)) { response = handleOptions(); } else { response = returnNotImplementedResponse(ODataNotImplementedException.TUNNELING); } } return response; }
@POST public Response handlePost(@HeaderParam("X-HTTP-Method") final String xHttpMethod) throws ODataException { Response response; if (xHttpMethod == null) { response = handle(ODataHttpMethod.POST); } else { /* tunneling */ if ("MERGE".equals(xHttpMethod)) { response = handle(ODataHttpMethod.MERGE); } else if ("PATCH".equals(xHttpMethod)) { response = handle(ODataHttpMethod.PATCH); } else if (HttpMethod.DELETE.equals(xHttpMethod)) { response = handle(ODataHttpMethod.DELETE); } else if (HttpMethod.PUT.equals(xHttpMethod)) { response = handle(ODataHttpMethod.PUT); } else if (HttpMethod.GET.equals(xHttpMethod)) { response = handle(ODataHttpMethod.GET); } else if (HttpMethod.POST.equals(xHttpMethod)) { response = handle(ODataHttpMethod.POST); } else if (HttpMethod.HEAD.equals(xHttpMethod)) { response = handleHead(); } else if (HttpMethod.OPTIONS.equals(xHttpMethod)) { response = handleOptions(); } else { response = returnNotImplementedResponse(ODataNotImplementedException.TUNNELING); } } return response; }
@DELETE public Response handleDelete() throws ODataException { return handle(ODataHttpMethod.DELETE); }
@POST public Response handlePost(@HeaderParam("X-HTTP-Method") final String xHttpMethod) throws ODataException { Response response; if (xHttpMethod == null) { response = handle(ODataHttpMethod.POST); } else { /* tunneling */ if ("MERGE".equals(xHttpMethod)) { response = handle(ODataHttpMethod.MERGE); } else if ("PATCH".equals(xHttpMethod)) { response = handle(ODataHttpMethod.PATCH); } else if (HttpMethod.DELETE.equals(xHttpMethod)) { response = handle(ODataHttpMethod.DELETE); } else if (HttpMethod.PUT.equals(xHttpMethod)) { response = handle(ODataHttpMethod.PUT); } else if (HttpMethod.GET.equals(xHttpMethod)) { response = handle(ODataHttpMethod.GET); } else if (HttpMethod.POST.equals(xHttpMethod)) { response = handle(ODataHttpMethod.POST); } else if (HttpMethod.HEAD.equals(xHttpMethod)) { response = handleHead(); } else if (HttpMethod.OPTIONS.equals(xHttpMethod)) { response = handleOptions(); } else { response = returnNotImplementedResponse(ODataNotImplementedException.TUNNELING); } } return response; }
@GET public Response handleGet() throws ODataException { return handle(ODataHttpMethod.GET); }
@GET public Response handleGet() throws ODataException { return handle(ODataHttpMethod.GET); }
@DELETE public Response handleDelete() throws ODataException { return handle(ODataHttpMethod.DELETE); }
@DELETE public Response handleDelete() throws ODataException { return handle(ODataHttpMethod.DELETE); }
@PUT public Response handlePut() throws ODataException { return handle(ODataHttpMethod.PUT); }
@PUT public Response handlePut() throws ODataException { return handle(ODataHttpMethod.PUT); }
@PUT public Response handlePut() throws ODataException { return handle(ODataHttpMethod.PUT); }
@MERGE public Response handleMerge() throws ODataException { return handle(ODataHttpMethod.MERGE); }
@PATCH public Response handlePatch() throws ODataException { return handle(ODataHttpMethod.PATCH); }
@MERGE public Response handleMerge() throws ODataException { return handle(ODataHttpMethod.MERGE); }
@PATCH public Response handlePatch() throws ODataException { return handle(ODataHttpMethod.PATCH); }
@MERGE public Response handleMerge() throws ODataException { return handle(ODataHttpMethod.MERGE); }
@PATCH public Response handlePatch() throws ODataException { return handle(ODataHttpMethod.PATCH); }