Class OkHttpRequestHandler

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  OkHttpRequestHandler.Builder
      Builder strategy for constructing an OkHTTPRequestHandler.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <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)  
      <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)  
      void shutdown()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • handle

        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)
        Specified by:
        handle in interface GeoApiContext.RequestHandler
      • handlePost

        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)
        Specified by:
        handlePost in interface GeoApiContext.RequestHandler