Attachments 介面

public interface Attachments

這個類別的實例可讓您存取 Attachments 中定義的所有作業。

方法摘要

修飾詞與類型 方法與描述
abstract java.util.concurrent.CompletableFuture<java.io.InputStream> getAttachment(String attachmentId, String viewId)

取得附件。

abstract java.util.concurrent.CompletableFuture<AttachmentInfo> getAttachmentInfo(String attachmentId)

取得附件資訊。

default java.lang.String getAttachmentUri(String attachmentId)

取得附件檢視的 URI。

abstract java.lang.String getAttachmentUri(String attachmentId, String viewId)

取得附件檢視的 URI。

方法詳細資料

getAttachment

public abstract CompletableFuture getAttachment(String attachmentId, String viewId)

GetAttachment。 取得具名檢視做為二進位內容。

參數:

attachmentId - 附件標識碼
viewId - 檢視 attachmentInfo 中的標識符

傳回:

可觀察至 InputStream 物件

getAttachmentInfo

public abstract CompletableFuture getAttachmentInfo(String attachmentId)

GetAttachmentInfo。 取得描述附件檢視的 AttachmentInfo 結構。

參數:

attachmentId - 附件標識碼

傳回:

可觀察的 AttachmentInfo 物件

getAttachmentUri

public default String getAttachmentUri(String attachmentId)

取得附件檢視的 URI。

參數:

attachmentId - 附件的標識碼。

傳回:

附件的 URI。

getAttachmentUri

public abstract String getAttachmentUri(String attachmentId, String viewId)

取得附件檢視的 URI。

參數:

attachmentId - 附件的標識碼。
viewId - 預設值為 「original」。。

傳回:

附件的 URI。

適用於