- get(String) - Method in class net.gotev.uploadservice.schemehandlers.SchemeHandlerFactory
-
- getBody() - Method in class net.gotev.uploadservice.ServerResponse
-
Gets server response body.
- getBodyAsString() - Method in class net.gotev.uploadservice.ServerResponse
-
Gets server response body as string.
- getCancelled() - Method in class net.gotev.uploadservice.UploadNotificationConfig
-
- getCompleted() - Method in class net.gotev.uploadservice.UploadNotificationConfig
-
- getContentType(Context) - Method in interface net.gotev.uploadservice.schemehandlers.SchemeHandler
-
- getContentType(Context) - Method in class net.gotev.uploadservice.UploadFile
-
Returns the content type for the file
- getElapsedTime() - Method in class net.gotev.uploadservice.UploadInfo
-
Gets upload task's elapsed time in milliseconds.
- getElapsedTimeString() - Method in class net.gotev.uploadservice.UploadInfo
-
Gets the elapsed time as a string, expressed in seconds if the value is < 60
,
or expressed in minutes:seconds if the value is >=
60.
- getError() - Method in class net.gotev.uploadservice.UploadNotificationConfig
-
- getFilesLeft() - Method in class net.gotev.uploadservice.UploadInfo
-
Gets the list of all the files left to be uploaded.
- getHeaders() - Method in class net.gotev.uploadservice.ServerResponse
-
Gets all the server response headers.
- getHttpCode() - Method in class net.gotev.uploadservice.ServerResponse
-
Gets server HTTP response code.
- getInputStream(Context) - Method in interface net.gotev.uploadservice.schemehandlers.SchemeHandler
-
- getInstance() - Static method in class net.gotev.uploadservice.schemehandlers.SchemeHandlerFactory
-
- getLength(Context) - Method in interface net.gotev.uploadservice.schemehandlers.SchemeHandler
-
- getMaxRetries() - Method in class net.gotev.uploadservice.UploadTaskParameters
-
- getName() - Method in class net.gotev.uploadservice.NameValue
-
- getName(Context) - Method in interface net.gotev.uploadservice.schemehandlers.SchemeHandler
-
- getName(Context) - Method in class net.gotev.uploadservice.UploadFile
-
Returns the name of this file.
- getNotificationChannelId() - Method in class net.gotev.uploadservice.UploadNotificationConfig
-
- getNotificationID() - Method in class net.gotev.uploadservice.UploadInfo
-
Gets the notification ID.
- getNumberOfRetries() - Method in class net.gotev.uploadservice.UploadInfo
-
Gets the number of the retries that has been made during the upload process.
- getPath() - Method in class net.gotev.uploadservice.UploadFile
-
Returns the string this was initialized with,
either an absolute file path or Android content URI
- getProgress() - Method in class net.gotev.uploadservice.UploadNotificationConfig
-
- getProgressPercent() - Method in class net.gotev.uploadservice.UploadInfo
-
Gets the upload progress in percent (from 0 to 100).
- getProperty(String) - Method in class net.gotev.uploadservice.UploadFile
-
Gets a property associated to this file.
- getProperty(String, String) - Method in class net.gotev.uploadservice.UploadFile
-
Gets a property associated to this file.
- getRequestHeaders() - Method in class net.gotev.uploadservice.HttpUploadTaskParameters
-
- getRequestParameters() - Method in class net.gotev.uploadservice.HttpUploadTaskParameters
-
- getResponse(HttpConnection.RequestBodyDelegate) - Method in interface net.gotev.uploadservice.http.HttpConnection
-
Gets the server response.
- getResponse(HttpConnection.RequestBodyDelegate) - Method in class net.gotev.uploadservice.http.impl.HurlStackConnection
-
- getStartTime() - Method in class net.gotev.uploadservice.UploadInfo
-
Gets upload task's start timestamp in milliseconds.
- getStream(Context) - Method in class net.gotev.uploadservice.UploadFile
-
- getSuccessfullyUploadedFiles() - Method in class net.gotev.uploadservice.UploadInfo
-
Gets the list of the successfully uploaded files.
- getTaskList() - Static method in class net.gotev.uploadservice.UploadService
-
Gets the list of the currently active upload tasks.
- getTotalBytes() - Method in class net.gotev.uploadservice.UploadInfo
-
Gets upload task's total bytes.
- getTotalFiles() - Method in class net.gotev.uploadservice.UploadInfo
-
Gets the total number of files added to the upload request.
- getUploadedBytes() - Method in class net.gotev.uploadservice.UploadInfo
-
Gets the uploaded bytes.
- getUploadId() - Method in class net.gotev.uploadservice.UploadInfo
-
Returns the Upload ID.
- getUploadRate() - Method in class net.gotev.uploadservice.UploadInfo
-
Gets the average upload rate in Kbit/s.
- getUploadRateString() - Method in class net.gotev.uploadservice.UploadInfo
-
Returns a string representation of the upload rate, expressed in the most convenient unit of
measurement (Mbit/s if the value is >=
1024, B/s if the value is < 1
, otherwise Kbit/s)
- getValue() - Method in class net.gotev.uploadservice.NameValue
-
- SchemeHandler - Interface in net.gotev.uploadservice.schemehandlers
-
Allows for different file representations to be used by abstracting several characteristics
and operations
- SchemeHandlerFactory - Class in net.gotev.uploadservice.schemehandlers
-
Factory which instantiates the proper scheme handler based on the scheme passed.
- ServerResponse - Class in net.gotev.uploadservice
-
Contains the server response.
- ServerResponse(int, byte[], LinkedHashMap<String, String>) - Constructor for class net.gotev.uploadservice.ServerResponse
-
Creates a new server response object.
- serverUrl - Variable in class net.gotev.uploadservice.UploadTaskParameters
-
- setAutoDeleteFilesAfterSuccessfulUpload(boolean) - Method in class net.gotev.uploadservice.UploadRequest
-
Sets the automatic file deletion after successful upload.
- setBasicAuth(String, String) - Method in class net.gotev.uploadservice.HttpUploadRequest
-
Sets the HTTP Basic Authentication header.
- setClearOnActionForAllStatuses(boolean) - Method in class net.gotev.uploadservice.UploadNotificationConfig
-
Sets whether or not to clear the notification when the user taps on it
for all the notification statuses.
- setClickIntentForAllStatuses(PendingIntent) - Method in class net.gotev.uploadservice.UploadNotificationConfig
-
Sets the same intent to be executed when the user taps on the notification
for all the notification statuses.
- setCustomUserAgent(String) - Method in class net.gotev.uploadservice.HttpUploadRequest
-
Sets the custom user agent to use for this upload request.
- setDelegate(UploadStatusDelegate) - Method in class net.gotev.uploadservice.UploadRequest
-
Sets the delegate which will receive the events for this upload request.
- setFileToUpload(String) - Method in class net.gotev.uploadservice.BinaryUploadRequest
-
Sets the file used as raw body of the upload request.
- setHeaders(List<NameValue>) - Method in interface net.gotev.uploadservice.http.HttpConnection
-
Set request headers.
- setHeaders(List<NameValue>) - Method in class net.gotev.uploadservice.http.impl.HurlStackConnection
-
- setIconColorForAllStatuses(int) - Method in class net.gotev.uploadservice.UploadNotificationConfig
-
Sets the same notification icon for all the notification statuses.
- setIconForAllStatuses(int) - Method in class net.gotev.uploadservice.UploadNotificationConfig
-
Sets the same notification icon for all the notification statuses.
- setLargeIconForAllStatuses(Bitmap) - Method in class net.gotev.uploadservice.UploadNotificationConfig
-
Sets the same large notification icon for all the notification statuses.
- setLoggerDelegate(Logger.LoggerDelegate) - Static method in class net.gotev.uploadservice.Logger
-
- setLogLevel(Logger.LogLevel) - Static method in class net.gotev.uploadservice.Logger
-
- setMaxRetries(int) - Method in class net.gotev.uploadservice.UploadRequest
-
Sets the maximum number of retries that the library will try if an error occurs,
before returning an error.
- setMaxRetries(int) - Method in class net.gotev.uploadservice.UploadTaskParameters
-
- setMethod(String) - Method in class net.gotev.uploadservice.HttpUploadRequest
-
Sets the HTTP method to use.
- setNotificationChannelId(String) - Method in class net.gotev.uploadservice.UploadNotificationConfig
-
Sets notification channel ID
- setNotificationConfig(UploadNotificationConfig) - Method in class net.gotev.uploadservice.UploadRequest
-
Sets custom notification configuration.
- setProperty(String, String) - Method in class net.gotev.uploadservice.UploadFile
-
Sets a property for this file.
- setRingToneEnabled(Boolean) - Method in class net.gotev.uploadservice.UploadNotificationConfig
-
Sets whether or not to enable the notification sound when the upload gets completed with
success or error.
- setTitleForAllStatuses(String) - Method in class net.gotev.uploadservice.UploadNotificationConfig
-
Sets the notification title for all the notification statuses.
- setTotalBodyBytes(long, boolean) - Method in interface net.gotev.uploadservice.http.HttpConnection
-
Sets the total body bytes.
- setTotalBodyBytes(long, boolean) - Method in class net.gotev.uploadservice.http.impl.HurlStackConnection
-
- setUploadID(String) - Method in class net.gotev.uploadservice.UploadServiceSingleBroadcastReceiver
-
- setUsesFixedLengthStreamingMode(boolean) - Method in class net.gotev.uploadservice.HttpUploadRequest
-
Sets if this upload request is using fixed length streaming mode.
- setUtf8Charset() - Method in class net.gotev.uploadservice.MultipartUploadRequest
-
Sets the charset for this multipart request to UTF-8.
- shouldContinueWriting() - Method in interface net.gotev.uploadservice.http.BodyWriter.OnStreamWriteListener
-
Indicates if the writing of the stream into the body should continue.
- shouldContinueWriting() - Method in class net.gotev.uploadservice.HttpUploadTask
-
- startUpload() - Method in class net.gotev.uploadservice.BinaryUploadRequest
-
- startUpload() - Method in class net.gotev.uploadservice.UploadRequest
-
Start the background file upload service.
- stop(Context) - Static method in class net.gotev.uploadservice.UploadService
-
Stops the service if no upload tasks are currently running
- stop(Context, boolean) - Static method in class net.gotev.uploadservice.UploadService
-
Stops the service.
- stopAllUploads() - Static method in class net.gotev.uploadservice.UploadService
-
Stop all the active uploads.
- stopUpload(String) - Static method in class net.gotev.uploadservice.UploadService
-
Stops the upload task with the given uploadId.
- unregister(Context) - Method in class net.gotev.uploadservice.UploadServiceBroadcastReceiver
-
- UPLOAD_POOL_SIZE - Static variable in class net.gotev.uploadservice.UploadService
-
Sets how many threads to use to handle concurrent uploads.
- UPLOAD_RATE - Static variable in class net.gotev.uploadservice.Placeholders
-
Placeholder to display the average upload rate.
- UPLOADED_FILES - Static variable in class net.gotev.uploadservice.Placeholders
-
Placeholder to display the number of successfully uploaded files.
- UploadFile - Class in net.gotev.uploadservice
-
Represents a file to upload.
- UploadFile(String) - Constructor for class net.gotev.uploadservice.UploadFile
-
Creates a new UploadFile.
- UploadInfo - Class in net.gotev.uploadservice
-
Contains upload information and statistics.
- UploadNotificationAction - Class in net.gotev.uploadservice
-
Class which represents a notification action.
- UploadNotificationAction(int, CharSequence, PendingIntent) - Constructor for class net.gotev.uploadservice.UploadNotificationAction
-
- UploadNotificationConfig - Class in net.gotev.uploadservice
-
Contains the configuration of the upload notification.
- UploadNotificationConfig() - Constructor for class net.gotev.uploadservice.UploadNotificationConfig
-
Creates a new upload notification configuration with default settings:
android.R.drawable.ic_menu_upload
will be used as the icon
If the user taps on the notification, nothing will happen
Once the operation is completed (either successfully or with an error):
the default notification sound will be emitted (or the default notification vibration if the device is in silent mode)
the notification will remain in the Notification Center until the user swipes it out
- UploadNotificationStatusConfig - Class in net.gotev.uploadservice
-
- UploadNotificationStatusConfig() - Constructor for class net.gotev.uploadservice.UploadNotificationStatusConfig
-
- UploadRequest<B extends UploadRequest<B>> - Class in net.gotev.uploadservice
-
Base class to extend to create an upload request.
- UploadRequest(Context, String, String) - Constructor for class net.gotev.uploadservice.UploadRequest
-
Creates a new upload request.
- UploadService - Class in net.gotev.uploadservice
-
Service to upload files in background using HTTP POST with notification center progress
display.
- UploadService() - Constructor for class net.gotev.uploadservice.UploadService
-
- UploadServiceBroadcastReceiver - Class in net.gotev.uploadservice
-
Broadcast receiver to subclass to create a receiver for
UploadService
events.
- UploadServiceBroadcastReceiver() - Constructor for class net.gotev.uploadservice.UploadServiceBroadcastReceiver
-
- UploadServiceSingleBroadcastReceiver - Class in net.gotev.uploadservice
-
Utility broadcast receiver to receive only the events for a single uploadID.
- UploadServiceSingleBroadcastReceiver(UploadStatusDelegate) - Constructor for class net.gotev.uploadservice.UploadServiceSingleBroadcastReceiver
-
- UploadStatusDelegate - Interface in net.gotev.uploadservice
-
Defines the methods that has to be implemented by a class who wants to listen for upload status
events.
- UploadTask - Class in net.gotev.uploadservice
-
Base class to subclass when creating upload tasks.
- UploadTask() - Constructor for class net.gotev.uploadservice.UploadTask
-
- UploadTaskParameters - Class in net.gotev.uploadservice
-
Class which contains all the basic parameters passed to the upload task.
- UploadTaskParameters() - Constructor for class net.gotev.uploadservice.UploadTaskParameters
-
- usesFixedLengthStreamingMode - Variable in class net.gotev.uploadservice.HttpUploadTaskParameters
-