GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: add GoogleApacheHttpTransport that uses the v2 ApacheHttpTransport implementation by chingor13 · Pull Request #1568 · googleapis/google-api-java-client

Conversation

@chingor13

@chingor13 chingor13 commented Aug 26, 2020

Copy link
Copy Markdown
Collaborator
  • Introduces a separate GoogleApacheHttpTransport that return the v2 ApacheHttpTransport implementation.
  • Deprecates the original GoogleApacheHttpTransport in favor of this one.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@chingor13
feat: add GoogleApacheHttpTransport that uses the v2 ApacheHttpTransp…
0766f3c
…ort implementation
@chingor13
chingor13 requested a review from a team August 26, 2020 22:11
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Aug 26, 2020
@chingor13 chingor13 mentioned this pull request Aug 26, 2020
replace deprecated apache transport with recommended #1536
Closed
@chingor13

chingor13 commented Aug 26, 2020

Copy link
Copy Markdown
Collaborator Author

Actually, we may want to introduce a new artifact for this (like google-api-client-apache-v2). Otherwise, we will require all users to install google-http-client-apache-v2 and the apache http client transitively.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

elharo
elharo reviewed Aug 27, 2020
View reviewed changes

@elharo elharo left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[INFO] There is 1 error reported by Checkstyle 8.23 with checkstyle.xml ruleset.
[ERROR] src/main/java/com/google/api/client/googleapis/apache/v2/GoogleApacheHttpTransport.java:[1] (javadoc) JavadocPackage: Missing package-info.java file.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...ient/src/main/java/com/google/api/client/googleapis/apache/v2/GoogleApacheHttpTransport.java
import org.apache.http.config.SocketConfig;
import org.apache.http.conn.socket.LayeredConnectionSocketFactory;
import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
import org.apache.http.impl.client.HttpClientBuilder;

@elharo elharo Aug 27, 2020

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we avoid depending on impl classes?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@chingor13 chingor13 Aug 27, 2020

Copy link
Copy Markdown
Collaborator Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Official Apache HttpClient examples that configure the clients use the impl classes: https://hc.apache.org/httpcomponents-client-4.3.x/httpclient/examples/org/apache/http/examples/client/ClientProxyAuthentication.java

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...ient/src/main/java/com/google/api/client/googleapis/apache/v2/GoogleApacheHttpTransport.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@chingor13
address review feedback
c23c640
@chingor13

chingor13 commented Aug 27, 2020

Copy link
Copy Markdown
Collaborator Author

Actually, we may want to introduce a new artifact for this (like google-api-client-apache-v2). Otherwise, we will require all users to install google-http-client-apache-v2 and the apache http client transitively.

google-http-client already has a dependency on the Apache HttpClient library so this is not introducing a new transitive dependencies (just the google-http-client-apache-v2 artifact).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chingor13

chingor13 commented Aug 27, 2020

Copy link
Copy Markdown
Collaborator Author

cc @ckiosidis Would this work for your use-case? It adds a nearly identical class that returns the non-deprecated ApacheHttpTransport implementation in a separate package namespace.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ckiosidis

ckiosidis commented Aug 28, 2020

Copy link
Copy Markdown

@chingor13 Yes, thanks for moving this forward! 👍

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chingor13
chingor13 requested a review from a team September 21, 2020 23:50
elharo
elharo suggested changes Oct 22, 2020
View reviewed changes
Comment thread ...-client/src/main/java/com/google/api/client/googleapis/apache/GoogleApacheHttpTransport.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...ient/src/main/java/com/google/api/client/googleapis/apache/v2/GoogleApacheHttpTransport.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

elharo
elharo suggested changes Oct 22, 2020
View reviewed changes
Comment thread ...ient/src/main/java/com/google/api/client/googleapis/apache/v2/GoogleApacheHttpTransport.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@chingor13
address review comments
a9c190a
@chingor13
chingor13 requested a review from elharo October 22, 2020 22:09
elharo
elharo reviewed Oct 23, 2020
View reviewed changes
Comment thread ...-client/src/main/java/com/google/api/client/googleapis/apache/GoogleApacheHttpTransport.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-api-client/src/main/java/com/google/api/client/googleapis/apache/v2/package-info.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@chingor13
address review feedback
414c636
@chingor13
chingor13 requested a review from elharo October 27, 2020 00:03
elharo
elharo approved these changes Oct 27, 2020
View reviewed changes
@chingor13
chingor13 merged commit d0dbca7 into googleapis:master Oct 27, 2020
@chingor13
chingor13 deleted the v2-apache-transport branch October 27, 2020 16:05
gcf-merge-on-green Bot pushed a commit that referenced this pull request Nov 10, 2020
@release-please
chore: release 1.31.0 (#1613)
266b309
🤖 I have created a release \*beep\* \*boop\* 
---
## [1.31.0](https://www.github.com/googleapis/google-api-java-client/compare/v1.30.11...v1.31.0) (2020-11-10)


### Features

* add GoogleApacheHttpTransport that uses the v2 ApacheHttpTransport implementation ([#1568](https://www.github.com/googleapis/google-api-java-client/issues/1568)) ([d0dbca7](https://www.github.com/googleapis/google-api-java-client/commit/d0dbca720479f1ca8627c58eda195857ea0b2423))
* add mtls support to GoogleNetHttpTransport and GoogleApacheHttpTransport ([#1619](https://www.github.com/googleapis/google-api-java-client/issues/1619)) ([1d8304c](https://www.github.com/googleapis/google-api-java-client/commit/1d8304c6311e910293b800ffdbf0bb6f19cf7fff))


### Dependencies

* update dependency com.google.appengine:appengine-api-1.0-sdk to v1.9.83 ([#1622](https://www.github.com/googleapis/google-api-java-client/issues/1622)) ([10bb904](https://www.github.com/googleapis/google-api-java-client/commit/10bb90441c90cb5ea7045a1ac5d39d669fad963d))
* update dependency com.google.oauth-client:google-oauth-client-bom to v1.31.2 ([#1623](https://www.github.com/googleapis/google-api-java-client/issues/1623)) ([5942561](https://www.github.com/googleapis/google-api-java-client/commit/594256120e4eb37b0f3ca386f69542b68b53d05b))
* update google-http-client to v1.38.0 ([#1620](https://www.github.com/googleapis/google-api-java-client/issues/1620)) ([bb63ded](https://www.github.com/googleapis/google-api-java-client/commit/bb63ded8846cd515c993c288728063f35e226ec5))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@elharo elharo elharo approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@chingor13 @ckiosidis @elharo
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.