Class JmsPartStringWriter

  • All Implemented Interfaces:
    JmsPartWriter

    public class JmsPartStringWriter
    extends JmsPartWriterImpl
    Force the contents of a Part to be a String.

    This uses the Part.setContent(Object, String) method having generated a String from the AdaptrisMessage (or body part) rather that Part.getOutputStream().

    In the adapter configuration file this class is aliased as sonic-part-string which is the preferred alternative to the fully qualified classname when building your configuration.

    • Constructor Detail

      • JmsPartStringWriter

        public JmsPartStringWriter()
    • 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