Class DefaultOAuth2HttpTransportFactory.MutableBlockingLowLevelHttpRequest

java.lang.Object
com.google.api.client.http.LowLevelHttpRequest
io.micronaut.gcp.credentials.DefaultOAuth2HttpTransportFactory.MutableBlockingLowLevelHttpRequest
Enclosing class:
DefaultOAuth2HttpTransportFactory

public static final class DefaultOAuth2HttpTransportFactory.MutableBlockingLowLevelHttpRequest extends com.google.api.client.http.LowLevelHttpRequest
Implementation of LowLevelHttpRequest that uses the blocking API of HttpClient. The GCP SDK manages threads for these requests, so they will not block the main Micronaut event loop.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addHeader(String name, String value)
     
    com.google.api.client.http.LowLevelHttpResponse
     

    Methods inherited from class com.google.api.client.http.LowLevelHttpRequest

    getContentEncoding, getContentLength, getContentType, getStreamingContent, setContentEncoding, setContentLength, setContentType, setStreamingContent, setTimeout, setWriteTimeout

    Methods inherited from class java.lang.Object

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

    • addHeader

      public void addHeader(String name, String value) throws IOException
      Specified by:
      addHeader in class com.google.api.client.http.LowLevelHttpRequest
      Throws:
      IOException
    • execute

      public com.google.api.client.http.LowLevelHttpResponse execute() throws IOException
      Specified by:
      execute in class com.google.api.client.http.LowLevelHttpRequest
      Throws:
      IOException