public class GetFileRequest
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<GetFileRequest> |
CREATOR |
Modifier | Constructor and Description |
---|---|
protected |
GetFileRequest(android.os.Parcel in) |
|
GetFileRequest(java.lang.String url,
java.lang.String filename,
java.lang.String dir,
int notificationId) |
|
GetFileRequest(java.lang.String url,
java.lang.String filename,
java.lang.String dir,
int notificationId,
BasicUserCredentials creds)
ctor
|
|
GetFileRequest(java.lang.String url,
java.lang.String filename,
java.lang.String dir,
int notificationId,
java.lang.String trustStoreType,
java.lang.String credentialType) |
Modifier and Type | Method and Description |
---|---|
Request |
createGetFileRequest()
Create the request to download the file.
|
int |
describeContents() |
BasicUserCredentials |
getCredentials() |
java.lang.String |
getCredentialType() |
java.lang.String |
getDir() |
java.io.File |
getFile() |
java.lang.String |
getFileName() |
int |
getNotificationId() |
java.lang.String |
getTrustStoreType() |
java.lang.String |
getUrl() |
boolean |
hasCredentials() |
boolean |
isValid() |
void |
setCredentials(BasicUserCredentials creds) |
void |
setFileName(java.lang.String fileName) |
java.lang.String |
toString() |
boolean |
useTruststore()
Check if truststore and credential types are set
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<GetFileRequest> CREATOR
public GetFileRequest(java.lang.String url, java.lang.String filename, java.lang.String dir, int notificationId)
public GetFileRequest(java.lang.String url, java.lang.String filename, java.lang.String dir, int notificationId, BasicUserCredentials creds)
filename
- Name of file to create locallydir
- Where to store file locallynotificationId
- creds
- basic user credentialspublic GetFileRequest(java.lang.String url, java.lang.String filename, java.lang.String dir, int notificationId, java.lang.String trustStoreType, java.lang.String credentialType)
protected GetFileRequest(android.os.Parcel in)
public boolean isValid()
public boolean hasCredentials()
public BasicUserCredentials getCredentials()
public void setCredentials(BasicUserCredentials creds)
public boolean useTruststore()
public java.lang.String getTrustStoreType()
public java.lang.String getCredentialType()
public java.lang.String getUrl()
public java.lang.String getDir()
public java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
public java.io.File getFile()
public int getNotificationId()
public java.lang.String toString()
toString
in class java.lang.Object
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
public int describeContents()
describeContents
in interface android.os.Parcelable
public Request createGetFileRequest()