Skip to content

Instantly share code, notes, and snippets.

@brianfromoregon
Created June 14, 2013 04:34
Show Gist options
  • Save brianfromoregon/5779483 to your computer and use it in GitHub Desktop.
Save brianfromoregon/5779483 to your computer and use it in GitHub Desktop.
protected AbstractGoogleJsonClientRequest(AbstractGoogleJsonClient abstractGoogleJsonClient,
String requestMethod, String uriTemplate, Object jsonContent, Class<T> responseClass) {
super(abstractGoogleJsonClient, requestMethod, uriTemplate, jsonContent == null ? null
: new JsonHttpContent(abstractGoogleJsonClient.getJsonFactory(), jsonContent)
.setWrapperKey(abstractGoogleJsonClient.getObjectParser().getWrapperKeys().isEmpty()
? null : "data"), responseClass);
this.jsonContent = jsonContent;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment