Interface GoogleClientRequestInitializer (2.6.0)

public interface GoogleClientRequestInitializer

Google client request initializer.

For example, this might be used to set a key URL query parameter on all requests:


 public class KeyRequestInitializer implements GoogleClientRequestInitializer {
   public void initialize(GoogleClientRequest request) {
     request.put("key", KEY);
   }
 }
 

Implementations should be thread-safe.

Methods

initialize(AbstractGoogleClientRequest<?> request)

public abstract void initialize(AbstractGoogleClientRequest<?> request)

Initializes a Google client request.

Parameter
Name Description
request AbstractGoogleClientRequest<?>
Exceptions
Type Description
IOException