Interface GoogleClientRequestInitializer (1.34.1)

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
NameDescription
requestAbstractGoogleClientRequest<?>
Exceptions
TypeDescription
IOException