Package com.adaptris.core.jms.sonic
Class JmsPartStringWriter
- java.lang.Object
-
- com.adaptris.core.jms.sonic.JmsPartWriterImpl
-
- com.adaptris.core.jms.sonic.JmsPartStringWriter
-
- All Implemented Interfaces:
JmsPartWriter
public class JmsPartStringWriter extends JmsPartWriterImpl
Force the contents of aPart
to be a String.This uses the
Part.setContent(Object, String)
method having generated aString
from the AdaptrisMessage (or body part) rather thatPart.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 Summary
Constructors Constructor Description JmsPartStringWriter()
-
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
-
-