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 ContentMetadataCodec
protected final DelegatingErrorHandler
protected Logger
protected final IOExceptionRetryHandler
protected Logger
protected final DelegatingRetryHandler
protected final HttpUtils
protected final HttpWire
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
BaseHttpCommandExecutorService
(HttpUtils utils, ContentMetadataCodec contentMetadataCodec, DelegatingRetryHandler retryHandler, IOExceptionRetryHandler ioRetryHandler, DelegatingErrorHandler errorHandler, HttpWire wire, String idempotentMethods) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
protected abstract Q
convert
(HttpRequest request) invoke
(HttpCommand command) Returns aHttpResponse
from 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:HttpCommandExecutorService
Returns aHttpResponse
from the server which responded to thecommand
.- Specified by:
invoke
in interfaceHttpCommandExecutorService
-
convert
- Throws:
IOException
InterruptedException
-
invoke
- Throws:
IOException
InterruptedException
-
cleanup
-