Package com.aspose.cad.cloud.api
Class CadApi
- java.lang.Object
-
- com.aspose.cad.cloud.api.CadApi
-
public class CadApi extends Object
Aspose.CAD Cloud API
-
-
Field Summary
Fields Modifier and Type Field Description Configuration
Configuration
The configurationstatic String
Version
Current SDK version
-
Constructor Summary
Constructors Constructor Description CadApi(String baseUrl)
Initializes a new instance of the CadApi class for on-premise deployment service usage.CadApi(String clientSecret, String clientId)
Initializes a new instance of the CadApi class for Aspose Cloud-hosted service usage.CadApi(String baseUrl, String apiVersion, Boolean debugMode)
Initializes a new instance of the CadApi class for on-premise deployment service usage.CadApi(String clientSecret, String clientId, String baseUrl)
Initializes a new instance of the CadApi class for Aspose Cloud-hosted service usage.CadApi(String clientSecret, String clientId, String baseUrl, String apiVersion)
Initializes a new instance of the CadApi class for Aspose Cloud-hosted service usage.CadApi(String clientSecret, String clientId, String baseUrl, String apiVersion, Boolean debug)
Initializes a new instance of the CadApi class for Aspose Cloud-hosted service usage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copyFile(CopyFileRequest request)
Copy filevoid
copyFolder(CopyFolderRequest request)
Copy foldervoid
createFolder(CreateFolderRequest request)
Create the foldervoid
deleteFile(DeleteFileRequest request)
Delete filevoid
deleteFolder(DeleteFolderRequest request)
Delete folderbyte[]
downloadFile(DownloadFileRequest request)
Download fileDiscUsage
getDiscUsage(GetDiscUsageRequest request)
Get disc usageCadResponse
getDrawingProperties(GetDrawingPropertiesRequest request)
Retrieves info about an existing drawing.byte[]
getDrawingResize(GetDrawingResizeRequest request)
Resize an existing drawing.byte[]
getDrawingRotateFlip(GetDrawingRotateFlipRequest request)
Rotate/flip an existing drawing.byte[]
getDrawingSaveAs(GetDrawingSaveAsRequest request)
Export an existing drawing to another format.FilesList
getFilesList(GetFilesListRequest request)
Get all files and folders within a folderFileVersions
getFileVersions(GetFileVersionsRequest request)
Get file versionsvoid
moveFile(MoveFileRequest request)
Move filevoid
moveFolder(MoveFolderRequest request)
Move folderObjectExist
objectExists(ObjectExistsRequest request)
Check if file or folder existsbyte[]
postDrawingBmp(PostDrawingBmpRequest request)
Export an existing drawing to BMP format with export settings specified.byte[]
postDrawingGif(PostDrawingGifRequest request)
Export an existing drawing into GIF format with export settings specified.byte[]
postDrawingJpeg(PostDrawingJpegRequest request)
Export an existing drawing into JPEG format with export settings specified.byte[]
postDrawingJpeg2000(PostDrawingJpeg2000Request request)
Export an existing drawing into JPEG2000 format with export settings specified.byte[]
postDrawingPdf(PostDrawingPdfRequest request)
Export an existing drawing to PDF format with export settings specified.byte[]
postDrawingPng(PostDrawingPngRequest request)
Export an existing drawing into PNG format with export settings specified.CadResponse
postDrawingProperties(PostDrawingPropertiesRequest request)
Retrieves info about drawing which is passed as a zero-indexed multipart/form-data content or as raw body stream.byte[]
postDrawingPsd(PostDrawingPsdRequest request)
Export an existing drawing into PSD format with export settings specified.byte[]
postDrawingResize(PostDrawingResizeRequest request)
Resize a drawing.byte[]
postDrawingRotateFlip(PostDrawingRotateFlipRequest request)
Rotate/flip a drawing.byte[]
postDrawingSaveAs(PostDrawingSaveAsRequest request)
Export existing drawing to another format.byte[]
postDrawingSvg(PostDrawingSvgRequest request)
Export an existing drawing to SVG format with export settings specified.byte[]
postDrawingTiff(PostDrawingTiffRequest request)
Export an existing drawing into TIFF format with export settings specified.byte[]
postDrawingWmf(PostDrawingWmfRequest request)
Export an existing drawing to WMF format with export settings specified.byte[]
putDrawingBmp(PutDrawingBmpRequest request)
Export drawing to BMP format.byte[]
putDrawingGif(PutDrawingGifRequest request)
Export drawing to GIF format.byte[]
putDrawingJpeg(PutDrawingJpegRequest request)
Export drawing to JPEG format.byte[]
putDrawingJpeg2000(PutDrawingJpeg2000Request request)
Export drawing to JPEG2000 format.byte[]
putDrawingPdf(PutDrawingPdfRequest request)
Export drawing to PDF format.byte[]
putDrawingPng(PutDrawingPngRequest request)
Export drawing to PNG format.byte[]
putDrawingPsd(PutDrawingPsdRequest request)
Export drawing to PSD format.byte[]
putDrawingSvg(PutDrawingSvgRequest request)
Export drawing to SVG format.byte[]
putDrawingTiff(PutDrawingTiffRequest request)
Export drawing to TIFF format.byte[]
putDrawingWmf(PutDrawingWmfRequest request)
Export drawing to WMF format.StorageExist
storageExists(StorageExistsRequest request)
Check if storage existsFilesUploadResult
uploadFile(UploadFileRequest request)
Upload file
-
-
-
Field Detail
-
Version
public static final String Version
Current SDK version- See Also:
- Constant Field Values
-
Configuration
public Configuration Configuration
The configuration
-
-
Constructor Detail
-
CadApi
public CadApi(String baseUrl)
Initializes a new instance of the CadApi class for on-premise deployment service usage.- Parameters:
baseUrl
- The base URL.
-
CadApi
public CadApi(String clientSecret, String clientId)
Initializes a new instance of the CadApi class for Aspose Cloud-hosted service usage.- Parameters:
clientSecret
- The Client Secret.clientId
- The Client ID.
-
CadApi
public CadApi(String baseUrl, String apiVersion, Boolean debugMode) throws Exception
Initializes a new instance of the CadApi class for on-premise deployment service usage.- Parameters:
baseUrl
- The base URL.apiVersion
- API version.debugMode
- If debug mode is enabled.- Throws:
Exception
-
CadApi
public CadApi(String clientSecret, String clientId, String baseUrl)
Initializes a new instance of the CadApi class for Aspose Cloud-hosted service usage.- Parameters:
clientSecret
- The Client Secret.clientId
- The Client ID.baseUrl
- The base URL.
-
CadApi
public CadApi(String clientSecret, String clientId, String baseUrl, String apiVersion) throws Exception
Initializes a new instance of the CadApi class for Aspose Cloud-hosted service usage.- Parameters:
clientSecret
- The Client Secret.clientId
- The Client ID.baseUrl
- The base URL.apiVersion
- API version.- Throws:
Exception
-
CadApi
public CadApi(String clientSecret, String clientId, String baseUrl, String apiVersion, Boolean debug) throws Exception
Initializes a new instance of the CadApi class for Aspose Cloud-hosted service usage.- Parameters:
clientSecret
- The Client Secret.clientId
- The Client ID.baseUrl
- The base URL.apiVersion
- API version.debug
- If debug mode is enabled.- Throws:
Exception
-
-
Method Detail
-
copyFile
public void copyFile(CopyFileRequest request) throws Exception
Copy file- Parameters:
request
- Holds parameters for this request invocation.- Throws:
Exception
-
copyFolder
public void copyFolder(CopyFolderRequest request) throws Exception
Copy folder- Parameters:
request
- Holds parameters for this request invocation.- Throws:
Exception
-
createFolder
public void createFolder(CreateFolderRequest request) throws Exception
Create the folder- Parameters:
request
- Holds parameters for this request invocation.- Throws:
Exception
-
deleteFile
public void deleteFile(DeleteFileRequest request) throws Exception
Delete file- Parameters:
request
- Holds parameters for this request invocation.- Throws:
Exception
-
deleteFolder
public void deleteFolder(DeleteFolderRequest request) throws Exception
Delete folder- Parameters:
request
- Holds parameters for this request invocation.- Throws:
Exception
-
downloadFile
public byte[] downloadFile(DownloadFileRequest request) throws Exception
Download file- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- byte[]
- Throws:
Exception
-
getDiscUsage
public DiscUsage getDiscUsage(GetDiscUsageRequest request) throws Exception
Get disc usage- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- DiscUsage
- Throws:
Exception
-
getDrawingProperties
public CadResponse getDrawingProperties(GetDrawingPropertiesRequest request) throws Exception
Retrieves info about an existing drawing.- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- CadResponse
- Throws:
Exception
-
getDrawingResize
public byte[] getDrawingResize(GetDrawingResizeRequest request) throws Exception
Resize an existing drawing.- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- byte[]
- Throws:
Exception
-
getDrawingRotateFlip
public byte[] getDrawingRotateFlip(GetDrawingRotateFlipRequest request) throws Exception
Rotate/flip an existing drawing.- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- byte[]
- Throws:
Exception
-
getDrawingSaveAs
public byte[] getDrawingSaveAs(GetDrawingSaveAsRequest request) throws Exception
Export an existing drawing to another format.- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- byte[]
- Throws:
Exception
-
getFileVersions
public FileVersions getFileVersions(GetFileVersionsRequest request) throws Exception
Get file versions- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- FileVersions
- Throws:
Exception
-
getFilesList
public FilesList getFilesList(GetFilesListRequest request) throws Exception
Get all files and folders within a folder- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- FilesList
- Throws:
Exception
-
moveFile
public void moveFile(MoveFileRequest request) throws Exception
Move file- Parameters:
request
- Holds parameters for this request invocation.- Throws:
Exception
-
moveFolder
public void moveFolder(MoveFolderRequest request) throws Exception
Move folder- Parameters:
request
- Holds parameters for this request invocation.- Throws:
Exception
-
objectExists
public ObjectExist objectExists(ObjectExistsRequest request) throws Exception
Check if file or folder exists- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- ObjectExist
- Throws:
Exception
-
postDrawingBmp
public byte[] postDrawingBmp(PostDrawingBmpRequest request) throws Exception
Export an existing drawing to BMP format with export settings specified.- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- byte[]
- Throws:
Exception
-
postDrawingGif
public byte[] postDrawingGif(PostDrawingGifRequest request) throws Exception
Export an existing drawing into GIF format with export settings specified.- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- byte[]
- Throws:
Exception
-
postDrawingJpeg
public byte[] postDrawingJpeg(PostDrawingJpegRequest request) throws Exception
Export an existing drawing into JPEG format with export settings specified.- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- byte[]
- Throws:
Exception
-
postDrawingJpeg2000
public byte[] postDrawingJpeg2000(PostDrawingJpeg2000Request request) throws Exception
Export an existing drawing into JPEG2000 format with export settings specified.- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- byte[]
- Throws:
Exception
-
postDrawingPdf
public byte[] postDrawingPdf(PostDrawingPdfRequest request) throws Exception
Export an existing drawing to PDF format with export settings specified.- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- byte[]
- Throws:
Exception
-
postDrawingPng
public byte[] postDrawingPng(PostDrawingPngRequest request) throws Exception
Export an existing drawing into PNG format with export settings specified.- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- byte[]
- Throws:
Exception
-
postDrawingProperties
public CadResponse postDrawingProperties(PostDrawingPropertiesRequest request) throws Exception
Retrieves info about drawing which is passed as a zero-indexed multipart/form-data content or as raw body stream.- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- CadResponse
- Throws:
Exception
-
postDrawingPsd
public byte[] postDrawingPsd(PostDrawingPsdRequest request) throws Exception
Export an existing drawing into PSD format with export settings specified.- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- byte[]
- Throws:
Exception
-
postDrawingResize
public byte[] postDrawingResize(PostDrawingResizeRequest request) throws Exception
Resize a drawing. Drawing data is passed as a zero-indexed multipart/form-data content or as raw body stream.- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- byte[]
- Throws:
Exception
-
postDrawingRotateFlip
public byte[] postDrawingRotateFlip(PostDrawingRotateFlipRequest request) throws Exception
Rotate/flip a drawing. Drawing data is passed as a zero-indexed multipart/form-data content or as raw body stream.- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- byte[]
- Throws:
Exception
-
postDrawingSaveAs
public byte[] postDrawingSaveAs(PostDrawingSaveAsRequest request) throws Exception
Export existing drawing to another format. Drawing data is passed as zero-indexed multipart/form-data content or as raw body stream.- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- byte[]
- Throws:
Exception
-
postDrawingSvg
public byte[] postDrawingSvg(PostDrawingSvgRequest request) throws Exception
Export an existing drawing to SVG format with export settings specified.- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- byte[]
- Throws:
Exception
-
postDrawingTiff
public byte[] postDrawingTiff(PostDrawingTiffRequest request) throws Exception
Export an existing drawing into TIFF format with export settings specified.- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- byte[]
- Throws:
Exception
-
postDrawingWmf
public byte[] postDrawingWmf(PostDrawingWmfRequest request) throws Exception
Export an existing drawing to WMF format with export settings specified.- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- byte[]
- Throws:
Exception
-
putDrawingBmp
public byte[] putDrawingBmp(PutDrawingBmpRequest request) throws Exception
Export drawing to BMP format. Drawing data is passed as zero-indexed multipart/form-data as well as export BMP options serialized as JSON. Order of drawing data and BMP options could vary.- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- byte[]
- Throws:
Exception
-
putDrawingGif
public byte[] putDrawingGif(PutDrawingGifRequest request) throws Exception
Export drawing to GIF format. Drawing data is passed as zero-indexed multipart/form-data as well as export GIF options serialized as JSON. Order of drawing data and GIF options could vary.- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- byte[]
- Throws:
Exception
-
putDrawingJpeg
public byte[] putDrawingJpeg(PutDrawingJpegRequest request) throws Exception
Export drawing to JPEG format. Drawing data is passed as zero-indexed multipart/form-data as well as export JPEG options serialized as JSON. Order of drawing data and JPEG options could vary.- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- byte[]
- Throws:
Exception
-
putDrawingJpeg2000
public byte[] putDrawingJpeg2000(PutDrawingJpeg2000Request request) throws Exception
Export drawing to JPEG2000 format. Drawing data is passed as zero-indexed multipart/form-data as well as export JPEG2000 options serialized as JSON. Order of drawing data and JPEG2000 options could vary.- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- byte[]
- Throws:
Exception
-
putDrawingPdf
public byte[] putDrawingPdf(PutDrawingPdfRequest request) throws Exception
Export drawing to PDF format. Drawing data is passed as zero-indexed multipart/form-data as well as export PDF options serialized as JSON. Order of drawing data and PDF options could vary.- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- byte[]
- Throws:
Exception
-
putDrawingPng
public byte[] putDrawingPng(PutDrawingPngRequest request) throws Exception
Export drawing to PNG format. Drawing data is passed as zero-indexed multipart/form-data as well as export PNG options serialized as JSON. Order of drawing data and PNG options could vary.- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- byte[]
- Throws:
Exception
-
putDrawingPsd
public byte[] putDrawingPsd(PutDrawingPsdRequest request) throws Exception
Export drawing to PSD format. Drawing data is passed as zero-indexed multipart/form-data as well as export PSD options serialized as JSON. Order of drawing data and PSD options could vary.- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- byte[]
- Throws:
Exception
-
putDrawingSvg
public byte[] putDrawingSvg(PutDrawingSvgRequest request) throws Exception
Export drawing to SVG format. Drawing data is passed as zero-indexed multipart/form-data as well as export SVG options serialized as JSON. Order of drawing data and SVG options could vary.- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- byte[]
- Throws:
Exception
-
putDrawingTiff
public byte[] putDrawingTiff(PutDrawingTiffRequest request) throws Exception
Export drawing to TIFF format. Drawing data is passed as zero-indexed multipart/form-data as well as export TIFF options serialized as JSON. Order of drawing data and TIFF options could vary.- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- byte[]
- Throws:
Exception
-
putDrawingWmf
public byte[] putDrawingWmf(PutDrawingWmfRequest request) throws Exception
Export drawing to WMF format. Drawing data is passed as zero-indexed multipart/form-data as well as export WMF options serialized as JSON. Order of drawing data and WMF options could vary.- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- byte[]
- Throws:
Exception
-
storageExists
public StorageExist storageExists(StorageExistsRequest request) throws Exception
Check if storage exists- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- StorageExist
- Throws:
Exception
-
uploadFile
public FilesUploadResult uploadFile(UploadFileRequest request) throws Exception
Upload file- Parameters:
request
- Holds parameters for this request invocation.- Returns:
- FilesUploadResult
- Throws:
Exception
-
-