Package org.jclouds.http.okhttp
Class OkHttpCommandExecutorService
- java.lang.Object
-
- org.jclouds.http.internal.BaseHttpCommandExecutorService<okhttp3.Request>
-
- org.jclouds.http.okhttp.OkHttpCommandExecutorService
-
- All Implemented Interfaces:
HttpCommandExecutorService
public final class OkHttpCommandExecutorService extends BaseHttpCommandExecutorService<okhttp3.Request>
-
-
Field Summary
-
Fields inherited from class org.jclouds.http.internal.BaseHttpCommandExecutorService
contentMetadataCodec, errorHandler, headerLog, ioRetryHandler, logger, retryHandler, utils, wire
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
cleanup(okhttp3.Request nativeResponse)
protected okhttp3.Request
convert(HttpRequest request)
protected okhttp3.RequestBody
generateRequestBody(HttpRequest request, Payload payload)
protected HttpResponse
invoke(okhttp3.Request nativeRequest)
protected void
populateHeaders(HttpRequest request, okhttp3.Request.Builder builder)
-
Methods inherited from class org.jclouds.http.internal.BaseHttpCommandExecutorService
invoke
-
-
-
-
Method Detail
-
convert
protected okhttp3.Request convert(HttpRequest request) throws IOException, InterruptedException
- Specified by:
convert
in classBaseHttpCommandExecutorService<okhttp3.Request>
- Throws:
IOException
InterruptedException
-
populateHeaders
protected void populateHeaders(HttpRequest request, okhttp3.Request.Builder builder)
-
generateRequestBody
protected okhttp3.RequestBody generateRequestBody(HttpRequest request, Payload payload)
-
invoke
protected HttpResponse invoke(okhttp3.Request nativeRequest) throws IOException, InterruptedException
- Specified by:
invoke
in classBaseHttpCommandExecutorService<okhttp3.Request>
- Throws:
IOException
InterruptedException
-
cleanup
protected void cleanup(okhttp3.Request nativeResponse)
- Specified by:
cleanup
in classBaseHttpCommandExecutorService<okhttp3.Request>
-
-