Package com.dropbox.core.v2.files
Class DbxAppFilesRequests
- java.lang.Object
-
- com.dropbox.core.v2.files.DbxAppFilesRequests
-
public class DbxAppFilesRequests extends java.lang.Object
Routes in namespace "files".
-
-
Constructor Summary
Constructors Constructor Description DbxAppFilesRequests(DbxRawClientV2 client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DbxDownloader<PreviewResult>
getThumbnailV2(PathOrLink resource)
Get a thumbnail for a file.DbxAppGetThumbnailV2Builder
getThumbnailV2Builder(PathOrLink resource)
Get a thumbnail for a file.
-
-
-
Constructor Detail
-
DbxAppFilesRequests
public DbxAppFilesRequests(DbxRawClientV2 client)
-
-
Method Detail
-
getThumbnailV2
public DbxDownloader<PreviewResult> getThumbnailV2(PathOrLink resource) throws ThumbnailV2ErrorException, DbxException
Get a thumbnail for a file.The default values for the optional request parameters will be used. See
DbxAppGetThumbnailV2Builder
for more details.- Parameters:
resource
- Information specifying which file to preview. This could be a path to a file, a shared link pointing to a file, or a shared link pointing to a folder, with a relative path. Must not benull
.- Returns:
- Downloader used to download the response body and view the server response.
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.ThumbnailV2ErrorException
DbxException
-
getThumbnailV2Builder
public DbxAppGetThumbnailV2Builder getThumbnailV2Builder(PathOrLink resource)
Get a thumbnail for a file.- Parameters:
resource
- Information specifying which file to preview. This could be a path to a file, a shared link pointing to a file, or a shared link pointing to a folder, with a relative path. Must not benull
.- Returns:
- Downloader builder for configuring the request parameters and instantiating a downloader.
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
-