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) |
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
@Inject protected BaseHttpCommandExecutorService(HttpUtils utils, ContentMetadataCodec contentMetadataCodec, DelegatingRetryHandler retryHandler, IOExceptionRetryHandler ioRetryHandler, DelegatingErrorHandler errorHandler, HttpWire wire)
public HttpResponse invoke(HttpCommand command)
HttpCommandExecutorService
HttpResponse
from the server which responded to the
command
.invoke
in interface HttpCommandExecutorService
protected abstract Q convert(HttpRequest request) throws IOException, InterruptedException
IOException
InterruptedException
protected abstract HttpResponse invoke(Q nativeRequest) throws IOException, InterruptedException
IOException
InterruptedException
protected abstract void cleanup(Q nativeRequest)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.