Package org.jclouds.http.internal
Class BaseHttpCommandExecutorService<Q>
java.lang.Object
org.jclouds.http.internal.BaseHttpCommandExecutorService<Q>
- All Implemented Interfaces:
HttpCommandExecutorService
- Direct Known Subclasses:
ApacheHCHttpCommandExecutorService,JavaUrlHttpCommandExecutorService,OkHttpCommandExecutorService
public abstract class BaseHttpCommandExecutorService<Q>
extends Object
implements HttpCommandExecutorService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ContentMetadataCodecprotected final DelegatingErrorHandlerprotected Loggerprotected final IOExceptionRetryHandlerprotected Loggerprotected final DelegatingRetryHandlerprotected final HttpUtilsprotected final HttpWire -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseHttpCommandExecutorService(HttpUtils utils, ContentMetadataCodec contentMetadataCodec, DelegatingRetryHandler retryHandler, IOExceptionRetryHandler ioRetryHandler, DelegatingErrorHandler errorHandler, HttpWire wire, String idempotentMethods) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidprotected abstract Qconvert(HttpRequest request) invoke(HttpCommand command) Returns aHttpResponsefrom the server which responded to thecommand.protected abstract HttpResponse
-
Field Details
-
utils
-
contentMetadataCodec
-
retryHandler
-
ioRetryHandler
-
errorHandler
-
logger
-
headerLog
-
wire
-
-
Constructor Details
-
BaseHttpCommandExecutorService
protected BaseHttpCommandExecutorService(HttpUtils utils, ContentMetadataCodec contentMetadataCodec, DelegatingRetryHandler retryHandler, IOExceptionRetryHandler ioRetryHandler, DelegatingErrorHandler errorHandler, HttpWire wire, @Named("jclouds.idempotent-methods") String idempotentMethods)
-
-
Method Details
-
invoke
Description copied from interface:HttpCommandExecutorServiceReturns aHttpResponsefrom the server which responded to thecommand.- Specified by:
invokein interfaceHttpCommandExecutorService
-
convert
- Throws:
IOExceptionInterruptedException
-
invoke
- Throws:
IOExceptionInterruptedException
-
cleanup
-