CHJani / google-api-java-client

Automatically exported from code.google.com/p/google-api-java-client
0 stars 0 forks source link

Add convenience method(s) to override base URL of JsonHttpClient.Builder #348

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
External references, such as a standards document, or specification?

http://javadoc.google-api-java-client.googlecode.com/hg/apis/plus/v1/com/google/
api/services/plus/Plus.html

Java environments (e.g. Java 6, Android 2.3, App Engine, or All)?

All

Please describe the feature requested.

Internally at Google we use a sandbox server for testing before pushing out to 
production and thus need the ability to override the server used in 
JsonHttpClient.Builder().  We have a getBaseUrl() method in Builder but it is 
inconvenient to use.  Would be simpler to just provide a setBaseUrl() method 
and/or a setBaseHost() method.

Original issue reported on code.google.com by yan...@google.com on 11 Nov 2011 at 8:48

GoogleCodeExporter commented 9 years ago
Fixed in http://codereview.appspot.com/5373094/.

Original comment by rmis...@google.com on 14 Nov 2011 at 11:18

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 12 Mar 2012 at 8:33