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 java.io.IOException
java.io.IOException
Copyright © 2010-2019 Google. All Rights Reserved.