|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.netheos.pcsapi.models.CDownloadRequest
public class CDownloadRequest
Class that parametrizes a download request: path + bytes sink + (optional) byte range
| Constructor Summary | |
|---|---|
CDownloadRequest(CPath path,
ByteSink byteSink)
|
|
| Method Summary | |
|---|---|
ByteSink |
getByteSink()
If no progress listener has been set, return the byte sink defined in constructor, otherwise decorate it. |
Headers |
getHttpHeaders()
Get the HTTP headers to be used for download request. |
CPath |
getPath()
Get the file path to download |
CDownloadRequest |
setProgressListener(ProgressListener pl)
Defines an object that will be notified during download. |
CDownloadRequest |
setRange(long offset,
long length)
Defines a range for partial content download. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CDownloadRequest(CPath path,
ByteSink byteSink)
| Method Detail |
|---|
public CPath getPath()
public Headers getHttpHeaders()
public CDownloadRequest setRange(long offset,
long length)
offset - The start offset to download the file, or <0 for downloading only end of filelength - (never 0) The data length to download, or <0 for downloading up to end of file
public CDownloadRequest setProgressListener(ProgressListener pl)
pl - the progress listener
public ByteSink getByteSink()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||