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 java.lang.String |
CONTENT_LENGTH |
static java.lang.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(java.lang.String url) |
protected abstract java.lang.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 java.lang.String ETAG
public static final java.lang.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 java.io.IOException
getReturnObject in class AbstractCommand<org.apache.http.client.methods.HttpGet,N>java.io.IOExceptionprotected abstract void handleEntity(org.apache.http.HttpEntity entity)
throws java.io.IOException
java.io.IOExceptionprotected abstract java.lang.String getMd5()
throws java.io.IOException
java.io.IOExceptionprotected abstract N getObjectAsReturnObject()
protected org.apache.http.client.methods.HttpGet createRequest(java.lang.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-2020 42 BV. All Rights Reserved.