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 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 Detail
- 
convert
protected okhttp3.Request convert(HttpRequest request) throws IOException, InterruptedException
- Specified by:
 convertin classBaseHttpCommandExecutorService<okhttp3.Request>- Throws:
 IOExceptionInterruptedException
 
- 
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:
 invokein classBaseHttpCommandExecutorService<okhttp3.Request>- Throws:
 IOExceptionInterruptedException
 
- 
cleanup
protected void cleanup(okhttp3.Request nativeResponse)
- Specified by:
 cleanupin classBaseHttpCommandExecutorService<okhttp3.Request>
 
 - 
 
 -