public class DownloadsManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DownloadsManager.Builder |
| Modifier and Type | Field and Description |
|---|---|
Authentication |
auth |
NetworkSession |
networkSession |
| Modifier | Constructor and Description |
|---|---|
|
DownloadsManager() |
protected |
DownloadsManager(DownloadsManager.Builder builder) |
public Authentication auth
public NetworkSession networkSession
public DownloadsManager()
protected DownloadsManager(DownloadsManager.Builder builder)
public String getDownloadFileUrl(String fileId)
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
public String getDownloadFileUrl(String fileId, GetDownloadFileUrlQueryParams queryParams)
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
queryParams - Query parameters of downloadFile methodpublic String getDownloadFileUrl(String fileId, GetDownloadFileUrlHeaders headers)
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
headers - Headers of downloadFile methodpublic String getDownloadFileUrl(String fileId, GetDownloadFileUrlQueryParams queryParams, GetDownloadFileUrlHeaders headers)
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
queryParams - Query parameters of downloadFile methodheaders - Headers of downloadFile methodpublic InputStream downloadFile(String fileId)
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
public InputStream downloadFile(String fileId, DownloadFileQueryParams queryParams)
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
queryParams - Query parameters of downloadFile methodpublic InputStream downloadFile(String fileId, DownloadFileHeaders headers)
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
headers - Headers of downloadFile methodpublic InputStream downloadFile(String fileId, DownloadFileQueryParams queryParams, DownloadFileHeaders headers)
fileId - The unique identifier that represents a file.
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`. Example: "12345"
queryParams - Query parameters of downloadFile methodheaders - Headers of downloadFile methodpublic void downloadFileToOutputStream(String fileId, OutputStream outputStream)
public void downloadFileToOutputStream(String fileId, OutputStream outputStream, DownloadFileToOutputStreamQueryParams queryParams)
public void downloadFileToOutputStream(String fileId, OutputStream outputStream, DownloadFileToOutputStreamHeaders headers)
public void downloadFileToOutputStream(String fileId, OutputStream outputStream, DownloadFileToOutputStreamQueryParams queryParams, DownloadFileToOutputStreamHeaders headers)
public Authentication getAuth()
public NetworkSession getNetworkSession()