public abstract class AbstractDownloadObjectCommand<M extends org.apache.http.client.methods.HttpGet,N> extends AbstractObjectCommand<org.apache.http.client.methods.HttpGet,N>
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTENT_LENGTH |
static String |
ETAG |
LOG, request, response| Constructor and Description |
|---|
AbstractDownloadObjectCommand(Account account,
org.apache.http.client.HttpClient httpClient,
Access access,
StoredObject object,
DownloadInstructions downloadInstructions) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.http.client.methods.HttpGet |
createRequest(String url) |
protected abstract String |
getMd5() |
protected abstract N |
getObjectAsReturnObject() |
protected N |
getReturnObject(org.apache.http.HttpResponse response) |
HttpStatusChecker[] |
getStatusCheckers() |
protected abstract void |
handleEntity(org.apache.http.HttpEntity entity) |
call, getURL, setConnectionKeepAliveaddHeaders, close, closeStreamAutomatically, createObjectMapper, modifyURI, setAllowErrorLog, setHeaderpublic static final String ETAG
public static final String CONTENT_LENGTH
public AbstractDownloadObjectCommand(Account account, org.apache.http.client.HttpClient httpClient, Access access, StoredObject object, DownloadInstructions downloadInstructions)
protected N getReturnObject(org.apache.http.HttpResponse response) throws IOException
getReturnObject in class AbstractCommand<org.apache.http.client.methods.HttpGet,N>IOExceptionprotected abstract void handleEntity(org.apache.http.HttpEntity entity)
throws IOException
IOExceptionprotected abstract String getMd5() throws IOException
IOExceptionprotected abstract N getObjectAsReturnObject()
protected org.apache.http.client.methods.HttpGet createRequest(String url)
createRequest in class AbstractCommand<org.apache.http.client.methods.HttpGet,N>public HttpStatusChecker[] getStatusCheckers()
getStatusCheckers in class AbstractCommand<org.apache.http.client.methods.HttpGet,N>Copyright © 2012-2017 42 BV. All Rights Reserved.