public class OkHttpRequestHandler extends java.lang.Object implements GeoApiContext.RequestHandler
GeoApiContext.RequestHandler
Modifier and Type | Class and Description |
---|---|
static class |
OkHttpRequestHandler.Builder
Builder strategy for constructing an
OkHTTPRequestHandler . |
Modifier and Type | Method and Description |
---|---|
<T,R extends com.google.maps.internal.ApiResponse<T>> |
handle(java.lang.String hostName,
java.lang.String url,
java.lang.String userAgent,
java.lang.Class<R> clazz,
com.google.gson.FieldNamingPolicy fieldNamingPolicy,
long errorTimeout,
java.lang.Integer maxRetries,
com.google.maps.internal.ExceptionsAllowedToRetry exceptionsAllowedToRetry) |
<T,R extends com.google.maps.internal.ApiResponse<T>> |
handlePost(java.lang.String hostName,
java.lang.String url,
java.lang.String payload,
java.lang.String userAgent,
java.lang.Class<R> clazz,
com.google.gson.FieldNamingPolicy fieldNamingPolicy,
long errorTimeout,
java.lang.Integer maxRetries,
com.google.maps.internal.ExceptionsAllowedToRetry exceptionsAllowedToRetry) |
void |
shutdown() |
public <T,R extends com.google.maps.internal.ApiResponse<T>> PendingResult<T> handle(java.lang.String hostName, java.lang.String url, java.lang.String userAgent, java.lang.Class<R> clazz, com.google.gson.FieldNamingPolicy fieldNamingPolicy, long errorTimeout, java.lang.Integer maxRetries, com.google.maps.internal.ExceptionsAllowedToRetry exceptionsAllowedToRetry)
handle
in interface GeoApiContext.RequestHandler
public <T,R extends com.google.maps.internal.ApiResponse<T>> PendingResult<T> handlePost(java.lang.String hostName, java.lang.String url, java.lang.String payload, java.lang.String userAgent, java.lang.Class<R> clazz, com.google.gson.FieldNamingPolicy fieldNamingPolicy, long errorTimeout, java.lang.Integer maxRetries, com.google.maps.internal.ExceptionsAllowedToRetry exceptionsAllowedToRetry)
handlePost
in interface GeoApiContext.RequestHandler
public void shutdown()
shutdown
in interface GeoApiContext.RequestHandler