Package com.adaptris.core.jms.sonic
Class JmsPartOutputStreamWriter
- java.lang.Object
-
- com.adaptris.core.jms.sonic.JmsPartWriterImpl
-
- com.adaptris.core.jms.sonic.JmsPartOutputStreamWriter
-
- All Implemented Interfaces:
JmsPartWriter
public class JmsPartOutputStreamWriter extends JmsPartWriterImpl
Write the contents of aPart
.This uses the
Part.getOutputStream()
to write any output.In the adapter configuration file this class is aliased as sonic-part-outputstream which is the preferred alternative to the fully qualified classname when building your configuration.
-
-
Constructor Summary
Constructors Constructor Description JmsPartOutputStreamWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description progress.message.jclient.Part
write(AdaptrisMessage msg, progress.message.jclient.Part jmsPart)
Write the AdaptrisMessage to this jms body part.progress.message.jclient.Part
write(javax.mail.internet.MimeBodyPart mimePart, progress.message.jclient.Part jmsPart)
Write the MimePart to this jms body part.-
Methods inherited from class com.adaptris.core.jms.sonic.JmsPartWriterImpl
copyHeaders, currentMessageFactory, getEncoding, registerMessageFactory
-
-
-
-
Method Detail
-
write
public progress.message.jclient.Part write(javax.mail.internet.MimeBodyPart mimePart, progress.message.jclient.Part jmsPart) throws javax.mail.MessagingException, javax.jms.JMSException, java.io.IOException
Description copied from interface:JmsPartWriter
Write the MimePart to this jms body part.- Parameters:
mimePart
- the existing Mime body part.jmsPart
- the JMS Part- Returns:
- The JMS part (for method chaining).
- Throws:
javax.mail.MessagingException
javax.jms.JMSException
java.io.IOException
-
write
public progress.message.jclient.Part write(AdaptrisMessage msg, progress.message.jclient.Part jmsPart) throws javax.jms.JMSException, java.io.IOException
Description copied from interface:JmsPartWriter
Write the AdaptrisMessage to this jms body part.- Parameters:
msg
- the AdaptrisMessagejmsPart
- the JMS Part- Returns:
- The JMS part (for method chaining).
- Throws:
javax.jms.JMSException
java.io.IOException
-
-