C - the concrete type of the client instancepublic class AbstractGoogleClientAdaptee<C> extends Object
| Constructor and Description |
|---|
AbstractGoogleClientAdaptee(C client) |
| Modifier and Type | Method and Description |
|---|---|
protected C |
client() |
Object |
execute(Object request,
Map<String,Object> parameters)
Fill request with optional resource parameters and execute a remote call.
|
protected void |
fill(Object remoteRequest,
Map<String,Object> parameters)
Fill request with optional resource parameters added as URL query parameters.
|
protected com.google.api.client.http.AbstractInputStreamContent |
media(org.ctoolkit.restapi.client.adaptee.MediaProvider provider) |
public AbstractGoogleClientAdaptee(C client)
protected final C client()
protected void fill(@Nonnull Object remoteRequest, @Nullable Map<String,Object> parameters)
remoteRequest - the Google API client requestparameters - the optional resource parametersprotected final com.google.api.client.http.AbstractInputStreamContent media(@Nullable org.ctoolkit.restapi.client.adaptee.MediaProvider provider)
public Object execute(@Nonnull Object request, @Nullable Map<String,Object> parameters) throws IOException
request - the Google API client requestparameters - the optional resource (query) parametersIOException - might be thrown during remote call executionCopyright © 2017 Comvai - TurnOnline.biz. All rights reserved.