Skip navigation links

Oracle Fusion Middleware Infrastructure Management Java API Reference for Oracle SOA Suite
11g Release 1 (11.1.1.6.3)
E10659-09


oracle.soa.api.message
Interface Attachment

All Superinterfaces:
java.io.Serializable

public interface Attachment
extends java.io.Serializable

Message attachment


Method Summary
 byte[] getAsByteArray()
          Gets the attachment contents as a byte array
 java.lang.String getContentID()
          Gets the content identifier associated with the attachment
 java.lang.String getContentType()
          Gets the attachment content type
 java.io.InputStream getInputStream()
          Gets the attachment contents as an input stream
 java.lang.String getPartName()
          Gets the MIME part name for the attachment
 int getSize()
          Gets the attachment contents size, measured in number of bytes
 java.lang.String getTransferEncoding()
          Gets the transfer encoding for the attachment
 void setContentID(java.lang.String contentId)
          Sets the content identifier associated with the attachment
 void setContentType(java.lang.String contentType)
          Sets the attachment content type
 void setPartName(java.lang.String name)
          Sets the MIME part name for the attachment
 void setTransferEncoding(java.lang.String encoding)
          Sets the transfer encoding for the attachment

 

Method Detail

getContentID

java.lang.String getContentID()
Gets the content identifier associated with the attachment
Returns:
the content identifier

setContentID

void setContentID(java.lang.String contentId)
Sets the content identifier associated with the attachment
Parameters:
contentId - the content identifier

getContentType

java.lang.String getContentType()
Gets the attachment content type
Returns:
the content type

setContentType

void setContentType(java.lang.String contentType)
Sets the attachment content type
Parameters:
contentType - the content type

getInputStream

java.io.InputStream getInputStream()
                                   throws java.io.IOException
Gets the attachment contents as an input stream
Throws:
java.io.IOException

getAsByteArray

byte[] getAsByteArray()
                      throws java.io.IOException
Gets the attachment contents as a byte array
Throws:
java.io.IOException

getSize

int getSize()
            throws java.io.IOException
Gets the attachment contents size, measured in number of bytes
Returns:
the content size
Throws:
java.io.IOException

setTransferEncoding

void setTransferEncoding(java.lang.String encoding)
Sets the transfer encoding for the attachment
Parameters:
encoding - A valid transfer encoding, complying to those values defined by http://www.iana.org/assignments/transfer-encodings/

getTransferEncoding

java.lang.String getTransferEncoding()
Gets the transfer encoding for the attachment
Returns:
the transfer encoding

setPartName

void setPartName(java.lang.String name)
Sets the MIME part name for the attachment
Parameters:
name - the part name

getPartName

java.lang.String getPartName()
Gets the MIME part name for the attachment
Returns:
the part name, or null

Skip navigation links

Oracle Fusion Middleware Infrastructure Management Java API Reference for Oracle SOA Suite
11g Release 1 (11.1.1.6.3)
E10659-09


Copyright © 2010, 2012, Oracle and/or its affiliates. All rights reserved.