Class UploadService.UploadResult
- java.lang.Object
-
- com.microsoftopentechnologies.windowsazurestorage.service.UploadService.UploadResult
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- UploadService
protected static class UploadService.UploadResult extends Object implements Serializable
Data object for https uploading result.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UploadResult(int statusCode, String responseBody, String name, String url, long byteSize, String storageType, long startTime, long endTime)
Default constructor for UploadResult.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getByteSize()
long
getEndTime()
String
getName()
String
getResponseBody()
long
getStartTime()
int
getStatusCode()
String
getStorageType()
String
getUrl()
-
-
-
Constructor Detail
-
UploadResult
public UploadResult(int statusCode, String responseBody, String name, String url, long byteSize, String storageType, long startTime, long endTime)
Default constructor for UploadResult.- Parameters:
statusCode
- Status code for uploading task, the same as the http response code.responseBody
- Response from the server side. Provide detailed information when the task fails.name
- The name of the uploaded object.url
- The target url of the uploaded object.byteSize
- The byte size of the uploaded object.storageType
- Storage type of the uploaded object.startTime
- Start time of the uploading task.endTime
- End time of the uploading task.
-
-
Method Detail
-
getStatusCode
public int getStatusCode()
-
getResponseBody
public String getResponseBody()
-
getName
public String getName()
-
getUrl
public String getUrl()
-
getByteSize
public long getByteSize()
-
getStorageType
public String getStorageType()
-
getStartTime
public long getStartTime()
-
getEndTime
public long getEndTime()
-
-