public final class GetRepoIndexOperation extends HTTPOperation
GetFileOperation
, but also
display progress during download. Supports INFZ (compressed repo index cache), and legacy
INF (CSV file)
Also checks for HTTP 401 & 403 (unauthorized/forbidden)
Also ignores all SSL validation errors
NOTE: Currently only used via AsyncTask, not via HTTPRequestServiceModifier and Type | Field and Description |
---|---|
static java.lang.String |
PARAM_GETCREDENTIALS |
static java.lang.String |
PARAM_GETINFZFILE |
PARAM_STATUSCODE, STATUSCODE_UNKNOWN
Constructor and Description |
---|
GetRepoIndexOperation() |
Modifier and Type | Method and Description |
---|---|
android.os.Bundle |
execute(android.content.Context context,
Request request) |
static android.os.Bundle |
GetFile(android.content.Context context,
TakHttpClient httpclient,
RepoIndexRequest fileRequest,
int progressCurrent,
int progressTotal,
boolean bShutdownClient,
ProductProviderManager.ProgressDialogListener l)
Perform the HTTP Get, and display progress during download
|
getErrorMessage
public static final java.lang.String PARAM_GETINFZFILE
public static final java.lang.String PARAM_GETCREDENTIALS
public android.os.Bundle execute(android.content.Context context, Request request) throws ConnectionException, DataException
ConnectionException
DataException
public static android.os.Bundle GetFile(android.content.Context context, TakHttpClient httpclient, RepoIndexRequest fileRequest, int progressCurrent, int progressTotal, boolean bShutdownClient, ProductProviderManager.ProgressDialogListener l) throws DataException, ConnectionException
httpclient
- fileRequest
- DataException,
- ConnectionExceptionDataException
ConnectionException