public abstract class BaseHttpCommandExecutorService<Q> extends Object implements HttpCommandExecutorService
| Modifier and Type | Field and Description |
|---|---|
protected ContentMetadataCodec |
contentMetadataCodec |
protected DelegatingErrorHandler |
errorHandler |
protected Logger |
headerLog |
protected IOExceptionRetryHandler |
ioRetryHandler |
protected Logger |
logger |
protected DelegatingRetryHandler |
retryHandler |
protected HttpUtils |
utils |
protected HttpWire |
wire |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseHttpCommandExecutorService(HttpUtils utils,
ContentMetadataCodec contentMetadataCodec,
DelegatingRetryHandler retryHandler,
IOExceptionRetryHandler ioRetryHandler,
DelegatingErrorHandler errorHandler,
HttpWire wire,
String idempotentMethods) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
cleanup(Q nativeRequest) |
protected abstract Q |
convert(HttpRequest request) |
HttpResponse |
invoke(HttpCommand command)
Returns a
HttpResponse from the server which responded to the
command. |
protected abstract HttpResponse |
invoke(Q nativeRequest) |
protected final HttpUtils utils
protected final ContentMetadataCodec contentMetadataCodec
protected final DelegatingRetryHandler retryHandler
protected final IOExceptionRetryHandler ioRetryHandler
protected final DelegatingErrorHandler errorHandler
protected Logger logger
@Named(value="jclouds.headers") protected Logger headerLog
protected final HttpWire wire
protected BaseHttpCommandExecutorService(HttpUtils utils, ContentMetadataCodec contentMetadataCodec, DelegatingRetryHandler retryHandler, IOExceptionRetryHandler ioRetryHandler, DelegatingErrorHandler errorHandler, HttpWire wire, @Named(value="jclouds.idempotent-methods") String idempotentMethods)
public HttpResponse invoke(HttpCommand command)
HttpCommandExecutorServiceHttpResponse from the server which responded to the
command.invoke in interface HttpCommandExecutorServiceprotected abstract Q convert(HttpRequest request) throws IOException, InterruptedException
IOExceptionInterruptedExceptionprotected abstract HttpResponse invoke(Q nativeRequest) throws IOException, InterruptedException
IOExceptionInterruptedExceptionprotected abstract void cleanup(Q nativeRequest)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.