bankiprudhvi / google-api-java-client

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

setPlusRequestInitializer #645

Closed GoogleCodeExporter closed 9 years ago

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

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

All

Please describe the feature requested.

Here's your typical builder structure:

    Plus plus =
        new Plus.Builder(httpTransport, jsonFactory, null).setGoogleClientRequestInitializer(
            new PlusRequestInitializer(API_KEY)).build();

But it would be easier to use if it were:

    Plus plus =
        new Plus.Builder(httpTransport, jsonFactory, null).setPlusRequestInitializer(
            new PlusRequestInitializer(API_KEY)).build();

In other words, add a setPlusRequestInitializer that looks something like:

public Builder setPlusRequestInitializer(PlusRequestInitializer initializer) {
  return (Builder) setGoogleClientRequestInitializer(initializer);
}

Note that we'd still keep setGoogleClientRequestInitializer.

Original issue reported on code.google.com by yan...@google.com on 31 Oct 2012 at 4:10

GoogleCodeExporter commented 9 years ago

Original comment by rmis...@google.com on 31 Oct 2012 at 5:21

GoogleCodeExporter commented 9 years ago

Original comment by rmis...@google.com on 31 Oct 2012 at 5:26