public static final class BlobElementsDownloadFileFromElementRequest.Builder extends Object
| Modifier and Type | Method | Description |
|---|---|---|
BlobElementsDownloadFileFromElementResponse |
call(OnshapeDocument document) |
Calls downloadFileFromElement method, Download a file from a blob element
|
BlobElementsDownloadFileFromElementResponse |
call(String did,
WVM wvmType,
String wvm,
String eid) |
Calls downloadFileFromElement method, Download a file from a blob element
|
InputStreamWithHeaders |
callToStream(String did,
WVM wvmType,
String wvm,
String eid) |
Calls downloadFileFromElement method, Download a file from a blob element
|
String |
contentDisposition() |
Get If "attachment", includes a Content-Disposition return header with the filename
|
BlobElementsDownloadFileFromElementRequest.Builder |
contentDisposition(String value) |
Set If "attachment", includes a Content-Disposition return header with the filename
|
String |
linkDocumentId() |
Get Id of document that links to the document being accessed.
|
BlobElementsDownloadFileFromElementRequest.Builder |
linkDocumentId(String value) |
Set Id of document that links to the document being accessed.
|
public final String contentDisposition()
public final BlobElementsDownloadFileFromElementRequest.Builder contentDisposition(String value)
value - If "attachment", includes a Content-Disposition return header with the filenamepublic final String linkDocumentId()
public final BlobElementsDownloadFileFromElementRequest.Builder linkDocumentId(String value)
value - Id of document that links to the document being accessed. This may provide additional access rights to the document. Allowed only with version (v) path parameter.public final BlobElementsDownloadFileFromElementResponse call(String did, WVM wvmType, String wvm, String eid) throws OnshapeException
did - Document IDwvmType - Type of Workspace, Version or Microversionwvm - Workspace (w), Version (v) or Microversion (m) IDeid - Element IDOnshapeException - On HTTP or serialization errorpublic final BlobElementsDownloadFileFromElementResponse call(OnshapeDocument document) throws OnshapeException
document - Document object from Onshape URL.OnshapeException - On HTTP or serialization errorpublic final InputStreamWithHeaders callToStream(String did, WVM wvmType, String wvm, String eid) throws OnshapeException
did - Document IDwvmType - Type of Workspace, Version or Microversionwvm - Workspace (w), Version (v) or Microversion (m) IDeid - Element IDOnshapeException - On HTTP errorCopyright © 2021. All rights reserved.