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:

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:

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:

equals

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

Overrides:
equals in class Object
Parameters:
object -
Returns:

hashCode

int hashCode()
Uses the content IDs hashCode.

Overrides:
hashCode in class Object
Returns:

toString

String toString()
Overrides:
toString in class Object


Copyright 2007 SAP AG Complete Copyright Notice