protected final <T> T executePatchRelativeToOriginal( GenericUrl url, AbstractHttpContent patchContent, Class<T> parseAsType, String etag) throws IOException { prepareUrl(url, parseAsType); HttpRequest request = getRequestFactory().buildRequest("PATCH", url, patchContent); setIfMatch(request, etag); return execute(request).parseAs(parseAsType); }
protected final <T> T executePost( GenericUrl url, AbstractHttpContent content, Class<T> parseAsType) throws IOException { prepareUrl(url, parseAsType); HttpRequest request = getRequestFactory().buildPostRequest(url, content); return execute(request).parseAs(parseAsType); }