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
Modifier and TypeMethodDescriptionprotected 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 Details
-
convert
- Specified by:
convert
in classBaseHttpCommandExecutorService<okhttp3.Request>
- Throws:
IOException
InterruptedException
-
populateHeaders
-
generateRequestBody
-
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>
-