Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(645)

Issue 109370043: Add support for binary payloads to BatchRequest (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 3 months ago by wonderfly
Modified:
12 years, 3 months ago
Reviewers:
Anthony Moore, pbaldwin
Base URL:
https://code.google.com/p/google-api-java-client/
Visibility:
Public.

Description

Resolve build warnings of capitalized non-static variable names; Resolve build warnings of not having "@Override" marks for overriden methods; Add support for binary file batching requests; Add tests for binary file batching with protobuf; Add protobuf files for testing.

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+657 lines, -207 lines) Patch
M google-api-client-appengine/src/main/java/com/google/api/client/googleapis/extensions/appengine/auth/oauth2/AppIdentityCredential.java View 1 chunk +0 lines, -2 lines 0 comments Download
M google-api-client-appengine/src/test/java/com/google/api/client/googleapis/extensions/appengine/auth/oauth2/AppIdentityCredentialTest.java View 6 chunks +11 lines, -14 lines 0 comments Download
M google-api-client/pom.xml View 2 chunks +46 lines, -0 lines 0 comments Download
M google-api-client/src/main/java/com/google/api/client/googleapis/auth/oauth2/DefaultCredentialProvider.java View 1 chunk +1 line, -1 line 0 comments Download
M google-api-client/src/main/java/com/google/api/client/googleapis/auth/oauth2/GoogleCredential.java View 1 chunk +1 line, -1 line 0 comments Download
M google-api-client/src/main/java/com/google/api/client/googleapis/auth/oauth2/OAuth2Utils.java View 1 chunk +1 line, -1 line 0 comments Download
M google-api-client/src/main/java/com/google/api/client/googleapis/batch/BatchUnparsedResponse.java View 12 chunks +123 lines, -38 lines 2 comments Download
M google-api-client/src/main/java/com/google/api/client/googleapis/testing/auth/oauth2/MockTokenServerTransport.java View 1 chunk +1 line, -1 line 0 comments Download
M google-api-client/src/main/java/com/google/api/client/googleapis/testing/json/GoogleJsonResponseExceptionFactoryTesting.java View 1 chunk +1 line, -1 line 0 comments Download
M google-api-client/src/main/java/com/google/api/client/googleapis/util/Utils.java View 1 chunk +1 line, -1 line 0 comments Download
M google-api-client/src/test/java/com/google/api/client/googleapis/auth/oauth2/DefaultCredentialProviderTest.java View 5 chunks +17 lines, -13 lines 0 comments Download
M google-api-client/src/test/java/com/google/api/client/googleapis/auth/oauth2/GoogleCredentialTest.java View 13 chunks +81 lines, -70 lines 0 comments Download
M google-api-client/src/test/java/com/google/api/client/googleapis/batch/BatchRequestTest.java View 26 chunks +283 lines, -64 lines 0 comments Download
A google-api-client/src/test/java/com/google/api/client/googleapis/batch/error_output.proto View 1 chunk +76 lines, -0 lines 0 comments Download
A google-api-client/src/test/java/com/google/api/client/googleapis/batch/mock_data.proto View 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 3
wonderfly
12 years, 3 months ago (2014-07-01 17:36:31 UTC) #1
pbaldwin
LGTM
12 years, 3 months ago (2014-07-01 22:14:35 UTC) #2
Anthony Moore
12 years, 3 months ago (2014-07-02 18:40:07 UTC) #3
LGTM

Some optional suggestions.

https://codereview.appspot.com/109370043/diff/1/google-api-client/src/main/ja...
File
google-api-client/src/main/java/com/google/api/client/googleapis/batch/BatchUnparsedResponse.java
(right):

https://codereview.appspot.com/109370043/diff/1/google-api-client/src/main/ja...
google-api-client/src/main/java/com/google/api/client/googleapis/batch/BatchUnparsedResponse.java:124:
if ("Content-Length".equalsIgnoreCase(headerName.trim())) {
Would it be better to do the trim when the value is first extracted?

https://codereview.appspot.com/109370043/diff/1/google-api-client/src/main/ja...
google-api-client/src/main/java/com/google/api/client/googleapis/batch/BatchUnparsedResponse.java:163:
} else {
Having an else just to contain a comment seems odd. Could the comment be tweaked
so that the else is not needed?
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b