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 voidcleanup(okhttp3.Request nativeResponse) protected okhttp3.Requestconvert(HttpRequest request) protected okhttp3.RequestBodygenerateRequestBody(HttpRequest request, Payload payload) protected HttpResponseinvoke(okhttp3.Request nativeRequest) protected voidpopulateHeaders(HttpRequest request, okhttp3.Request.Builder builder) Methods inherited from class org.jclouds.http.internal.BaseHttpCommandExecutorService
invoke
-
Method Details
-
convert
- Specified by:
convertin classBaseHttpCommandExecutorService<okhttp3.Request>- Throws:
IOExceptionInterruptedException
-
populateHeaders
-
generateRequestBody
-
invoke
protected HttpResponse invoke(okhttp3.Request nativeRequest) throws IOException, InterruptedException - Specified by:
invokein classBaseHttpCommandExecutorService<okhttp3.Request>- Throws:
IOExceptionInterruptedException
-
cleanup
protected void cleanup(okhttp3.Request nativeResponse) - Specified by:
cleanupin classBaseHttpCommandExecutorService<okhttp3.Request>
-