com.sap.aii.mapping.api

Interface OutputAttachments


public interface OutputAttachments

Contains methods to set, change, or remove attachments of the XI message in the mapping. You can always use these methods, even if the Operation Mapping declares that it does not read attachments.


Method Summary
 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.
 

Method Detail

removeAttachment

void removeAttachment(String contentID)
Removes the attachment with the given content ID.

Parameters:
contentID -

setAttachment

void setAttachment(Attachment attachment)
Adds a new attachment. Attachments, which were modified during the mapping, must also be added again with this method.

Parameters:
attachment - a completely new or modified attachment.

create

Attachment create(String contentId,
                  byte[] content)
Creates a new attachment with the given contentId and content. The content type will be set to "application/xml".

Parameters:
contentId - identifier of the attachment.
content - content of attachment. In case of MTOM attachments, the content should not be base64-encoded.

create

Attachment create(String contentId,
                  String contentType,
                  byte[] content)
Creates a new attachment with the given contentId, content type and content.

Parameters:
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.
Returns:
Return a new attachment with the given contentId, content type and content.
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] SAP_XIAF [sap.com] com.sap.aii.mapping.lib.facade api BC-XI


Copyright 2014 SAP AG Complete Copyright Notice