public class HttpResumableInfo extends Object
Constructor and Description |
---|
HttpResumableInfo(int chunkNumber,
int chunkSize,
long totalSize,
String identifier,
String filename,
String relativePath) |
Modifier and Type | Method and Description |
---|---|
int |
getChunkNumber()
The index of the chunk in the current upload.
|
int |
getChunkSize()
The general chunk size.
|
String |
getFilename()
The original file name (since a bug in Firefox results in the file name
not being transmitted in chunk multipart posts).
|
String |
getIdentifier()
A unique identifier for the file contained in the request.
|
String |
getRelativePath()
The file's relative path when selecting a directory (defaults to file
name in all browsers except Chrome).
|
int |
getTotalChunks()
The total number of chunks.
|
long |
getTotalSize()
The total file size.
|
boolean |
isCompatible(HttpResumableInfo resumableInfo) |
HttpResumableInfo |
setChunkNumber(int chunkNumber) |
HttpResumableInfo |
setChunkSize(int chunkSize) |
HttpResumableInfo |
setFilename(String filename) |
HttpResumableInfo |
setIdentifier(String identifier) |
HttpResumableInfo |
setRelativePath(String relativePath) |
HttpResumableInfo |
setTotalChunks(int totalChunks) |
HttpResumableInfo |
setTotalSize(long totalSize) |
String |
toString() |
public String getFilename()
public HttpResumableInfo setFilename(String filename)
public String getRelativePath()
public HttpResumableInfo setRelativePath(String relativePath)
public boolean isCompatible(HttpResumableInfo resumableInfo)
resumableInfo
- public int getChunkSize()
public HttpResumableInfo setChunkSize(int chunkSize)
public long getTotalSize()
public HttpResumableInfo setTotalSize(long totalSize)
public String getIdentifier()
public int getTotalChunks()
public int getChunkNumber()
public HttpResumableInfo setChunkNumber(int chunkNumber)
public HttpResumableInfo setTotalChunks(int totalChunks)
public HttpResumableInfo setIdentifier(String identifier)
Copyright © 2009–2020 Waarp. All rights reserved.