public interface OutputAttachments
Modifier and Type | Method and Description |
---|---|
Attachment |
create(String contentId,
byte[] content)
Creates a new attachment with the given contentId and content.
|
Attachment |
create(String contentId,
String contentType,
byte[] content)
Creates a new attachment with the given contentId, content type and content.
|
void |
removeAttachment(String contentID)
Removes the attachment with the given content ID.
|
void |
setAttachment(Attachment attachment)
Adds a new attachment.
|
void removeAttachment(String contentID)
contentID
- string contentIdvoid setAttachment(Attachment attachment)
attachment
- a completely new or modified attachment.Attachment create(String contentId, byte[] content)
contentId
- identifier of the attachment.content
- content of attachment. In case of MTOM attachments, the
content should not be base64-encoded.Attachment create(String contentId, String contentType, byte[] content)
contentId
- identifier of the attachment.contentType
- the type of the attachment. Have a look at
http://de.selfhtml.org/diverses/mimetypen.htm for an overview of
possible types.content
- content of attachment. In case of MTOM attachments, the
content should not be base64-encoded.Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] SAP_XIAF
|
[sap.com] com.sap.aii.mapping.lib.facade
|
api
|
BC-XI
|
Copyright 2019 SAP AG Complete Copyright Notice