Class JmsPartOutputStreamWriter

  • All Implemented Interfaces:
    JmsPartWriter

    public class JmsPartOutputStreamWriter
    extends JmsPartWriterImpl
    Write the contents of a Part.

    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 Detail

      • JmsPartOutputStreamWriter

        public JmsPartOutputStreamWriter()
    • 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 AdaptrisMessage
        jmsPart - the JMS Part
        Returns:
        The JMS part (for method chaining).
        Throws:
        javax.jms.JMSException
        java.io.IOException