|
Oracle Fusion Middleware Java API Reference for Oracle Service Bus 11g Release 1 (11.1.1.5.0) E15033-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.bea.wli.sb.sources.MessageContextSource
public class MessageContextSource
Source that represents all message content. The Source for the message and attachments are left untyped to allow for deferred processing. Eventually, however, the attachments source will likely be converted into an AttachmentsSource and the message source will likely be converted to a specific typed source such as an XmlObjectSource or a StringSource. <p/> Note that the serialization format of a MessageContextSource is always a MIME multipart/related package, irrespective of the "native" serializations of the message and attachment sources. However, if this serialized is needed more than once, it is best to transform the Source into a MimeSource.
Field Summary | |
---|---|
static java.lang.String |
MIME_BOUNDARY The default MIME_Boundary and name of TransformOptions option |
Fields inherited from interface com.bea.wli.sb.sources.Source |
---|
DEFAULT_CHARACTER_SET_ENCODING |
Method Summary | |
---|---|
Source |
getAttachments() |
java.lang.String |
getContentType() |
java.io.InputStream |
getInputStream(TransformOptions options) Returns streaming byte-baseed representation of the Source's content. |
static MessageContextSource |
getInstance(javax.mail.internet.ContentType contentType, Headers messageHeaders, Source message) |
static MessageContextSource |
getInstance(javax.mail.internet.ContentType contentType, Headers messageHeaders, Source message, Source attachments) |
static MessageContextSource |
getInstance(java.lang.String contentType, Headers messageHeaders, Source message) |
static MessageContextSource |
getInstance(java.lang.String contentType, Headers messageHeaders, Source message, Source attachments) |
Source |
getMessage() |
Headers |
getMessageHeaders() |
boolean |
isMultipart() |
boolean |
isXop() |
void |
writeTo(java.io.OutputStream os, TransformOptions options) Serializes the Source's content to a byte-based stream. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MIME_BOUNDARY
Method Detail |
---|
public static MessageContextSource getInstance(java.lang.String contentType, Headers messageHeaders, Source message) throws java.io.IOException
java.io.IOException
public static MessageContextSource getInstance(java.lang.String contentType, Headers messageHeaders, Source message, Source attachments) throws java.io.IOException
java.io.IOException
public static MessageContextSource getInstance(javax.mail.internet.ContentType contentType, Headers messageHeaders, Source message)
public static MessageContextSource getInstance(javax.mail.internet.ContentType contentType, Headers messageHeaders, Source message, Source attachments)
public java.lang.String getContentType()
public Headers getMessageHeaders()
public Source getMessage()
Source
public Source getAttachments()
Source
public boolean isMultipart()
public boolean isXop()
public java.io.InputStream getInputStream(TransformOptions options) throws java.io.IOException, TransformException
Source
getInputStream
in interface Source
options
- Options used to affect the serializationjava.io.IOException
TransformException
public void writeTo(java.io.OutputStream os, TransformOptions options) throws java.io.IOException, TransformException
Source
writeTo
in interface Source
os
- the OutputStream to which serialized content will be writtenoptions
- TransformOptions used to affect the serializationjava.io.IOException
TransformException
|
Oracle Fusion Middleware Java API Reference for Oracle Service Bus 11g Release 1 (11.1.1.5.0) E15033-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |