com.sap.aii.mapping.api

Interface Attachment


public interface Attachment


Method Summary
 boolean equals(Object object)
          Compare attachments.
 String getBase64EncodedContent()
          Return the actual content of the attachment as Base64-encoded String.
 byte[] getContent()
          Return the actual content of the attachment as byte array.
 String getContentId()
          Get the identifier of the attachment.
 String getContentType()
          Get the type of the attachment.
 int hashCode()
          Uses the content IDs hashCode.
 String toString()
           
 

Method Detail

getContent

byte[] getContent()
Return the actual content of the attachment as byte array. This method will only return data, if the operation mapping has marked the flag "interested in attachment data". Otherwise, this method will return null.

Returns:
Return the actual content of the attachment as byte array, may be null.

getContentId

String getContentId()
Get the identifier of the attachment.


getContentType

String getContentType()
Get the type of the attachment. Have a look at http://de.selfhtml.org/diverses/mimetypen.htm for an overview of possible values.

Returns:
Return the type of the attachment.

getBase64EncodedContent

String getBase64EncodedContent()
Return the actual content of the attachment as Base64-encoded String. This method will only return data, if the operation mapping has marked the flag "interested in attachment data". Otherwise, this method will return null.

Returns:
Return the actual content of the attachment as Base64-encoded String, may be null.

equals

boolean equals(Object object)
Compare attachments. Just compares the content Ids.

Overrides:
equals in class Object
Parameters:
object -
Returns:
true if the attachments have the same IDs, false otherwise.

hashCode

int hashCode()
Uses the content IDs hashCode.

Overrides:
hashCode in class Object
Returns:
the hashCode of content IDs.

toString

String toString()
Overrides:
toString in class Object
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