Java 类com.google.api.client.http.AbstractHttpContent 实例源码

项目:ODK-Liberia    文件:GDataClient.java   
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);
}
项目:PicasaUploadSample    文件:GDataClient.java   
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);
}
项目:ODK-Liberia    文件:GDataClient.java   
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);
}
项目:PicasaUploadSample    文件:GDataClient.java   
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);
}