public class MissionPackageDownloader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_DOWNLOAD_RETRIES
Default user setting
|
static int |
REQUEST_TYPE_FILETRANSFER_GET_FILE |
static int |
REQUEST_TYPE_POST_MISSIONPACKAGE |
static int |
REQUEST_TYPE_QUERY_MISSIONPACKAGE |
static java.lang.String |
SERVER_TOOL_PRIVATE |
static java.lang.String |
SERVER_TOOL_PUBLIC
By default when searching Mission Packages, only display packages labeled public
|
protected static java.lang.String |
TAG |
Constructor and Description |
---|
MissionPackageDownloader(MapView mapView,
MissionPackageReceiver receiver)
ctor
|
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
void |
download(FileTransfer fileTransfer)
Download specified file asynchronously
|
int |
getDownloadAttempts() |
boolean |
isAlreadyDownloaded(FileTransfer ftr) |
void |
onRequestConnectionError(Request request,
RequestManager.ConnectionError ce) |
void |
onRequestCustomError(Request request,
android.os.Bundle resultData) |
void |
onRequestDataError(Request request) |
void |
onRequestFinished(Request request,
android.os.Bundle resultData) |
void |
post(PostMissionPackageRequest request)
Post file to server asynchronously
|
void |
query(java.lang.String serverConnectString,
java.lang.String tool) |
void |
setAlreadyDownloaded(FileTransfer ftr) |
void |
setDownloadAttempts(int downloadAttempts) |
protected static final java.lang.String TAG
public static final int DEFAULT_DOWNLOAD_RETRIES
public static final java.lang.String SERVER_TOOL_PUBLIC
public static final java.lang.String SERVER_TOOL_PRIVATE
public static final int REQUEST_TYPE_FILETRANSFER_GET_FILE
public static final int REQUEST_TYPE_POST_MISSIONPACKAGE
public static final int REQUEST_TYPE_QUERY_MISSIONPACKAGE
public MissionPackageDownloader(MapView mapView, MissionPackageReceiver receiver)
mapView
- receiver
- public void dispose()
public int getDownloadAttempts()
public void setDownloadAttempts(int downloadAttempts)
public boolean isAlreadyDownloaded(FileTransfer ftr)
public void setAlreadyDownloaded(FileTransfer ftr)
public void download(FileTransfer fileTransfer)
fileTransfer
- public void post(PostMissionPackageRequest request)
request
- public void query(java.lang.String serverConnectString, java.lang.String tool)
public void onRequestFinished(Request request, android.os.Bundle resultData)
public void onRequestConnectionError(Request request, RequestManager.ConnectionError ce)
public void onRequestDataError(Request request)
public void onRequestCustomError(Request request, android.os.Bundle resultData)