public interface GoogleClientRequestInitializer
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.
Modifier and Type | Method and Description |
---|---|
void |
initialize(AbstractGoogleClientRequest<?> request)
Initializes a Google client request.
|
void initialize(AbstractGoogleClientRequest<?> request) throws IOException
IOException
Copyright © 2010–2024 Google. All rights reserved.