org.apache.servicemix.components.email
Class MailMarshalerSupport

java.lang.Object
  extended by org.apache.servicemix.components.util.MarshalerSupport
      extended by org.apache.servicemix.components.email.MailMarshalerSupport
Direct Known Subclasses:
MimeMailMarshaler, SimpleMailMarshaler

public abstract class MailMarshalerSupport
extends org.apache.servicemix.components.util.MarshalerSupport

A useful base class for mail marshalers.

Version:
$Revision: 2153 $

Constructor Summary
MailMarshalerSupport()
           
 
Method Summary
protected  Address asAddress(Object value)
           
protected  Address[] asAddressArray(Object value)
           
protected  Date asDate(Object value)
           
protected  Object asStringOrStringArray(Object value)
           
 org.apache.servicemix.expression.Expression getAttachments()
           
 org.apache.servicemix.expression.Expression getBcc()
           
 org.apache.servicemix.expression.Expression getCc()
           
 DateFormat getDateFormat()
           
 org.apache.servicemix.expression.Expression getFrom()
           
 org.apache.servicemix.expression.Expression getHtml()
           
protected  String getHtml(javax.jbi.messaging.MessageExchange exchange, javax.jbi.messaging.NormalizedMessage normalizedMessage)
           
 org.apache.servicemix.expression.Expression getReplyTo()
           
 org.apache.servicemix.expression.Expression getSentDate()
           
protected  Date getSentDate(javax.jbi.messaging.MessageExchange exchange, javax.jbi.messaging.NormalizedMessage normalizedMessage)
           
 org.apache.servicemix.expression.Expression getSubject()
           
protected  String getSubject(javax.jbi.messaging.MessageExchange exchange, javax.jbi.messaging.NormalizedMessage normalizedMessage)
           
 org.apache.servicemix.expression.Expression getText()
           
protected  String getText(javax.jbi.messaging.MessageExchange exchange, javax.jbi.messaging.NormalizedMessage normalizedMessage)
           
 org.apache.servicemix.expression.Expression getTo()
           
 void setAttachments(org.apache.servicemix.expression.Expression attachments)
           
 void setBcc(org.apache.servicemix.expression.Expression bcc)
           
 void setCc(org.apache.servicemix.expression.Expression cc)
           
 void setDateFormat(DateFormat dateFormat)
           
 void setFrom(org.apache.servicemix.expression.Expression from)
           
 void setHtml(org.apache.servicemix.expression.Expression html)
           
 void setReplyTo(org.apache.servicemix.expression.Expression replyTo)
           
 void setSentDate(org.apache.servicemix.expression.Expression sentDate)
           
 void setSubject(org.apache.servicemix.expression.Expression subject)
           
 void setText(org.apache.servicemix.expression.Expression text)
           
 void setTo(org.apache.servicemix.expression.Expression to)
           
 
Methods inherited from class org.apache.servicemix.components.util.MarshalerSupport
asString, getTransformer, setTransformer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailMarshalerSupport

public MailMarshalerSupport()
Method Detail

getTo

public org.apache.servicemix.expression.Expression getTo()

setTo

public void setTo(org.apache.servicemix.expression.Expression to)

getCc

public org.apache.servicemix.expression.Expression getCc()

setCc

public void setCc(org.apache.servicemix.expression.Expression cc)

getBcc

public org.apache.servicemix.expression.Expression getBcc()

setBcc

public void setBcc(org.apache.servicemix.expression.Expression bcc)

getFrom

public org.apache.servicemix.expression.Expression getFrom()

setFrom

public void setFrom(org.apache.servicemix.expression.Expression from)

getText

public org.apache.servicemix.expression.Expression getText()

setText

public void setText(org.apache.servicemix.expression.Expression text)

getHtml

public org.apache.servicemix.expression.Expression getHtml()

setHtml

public void setHtml(org.apache.servicemix.expression.Expression html)

getSubject

public org.apache.servicemix.expression.Expression getSubject()

setSubject

public void setSubject(org.apache.servicemix.expression.Expression subject)

getReplyTo

public org.apache.servicemix.expression.Expression getReplyTo()

setReplyTo

public void setReplyTo(org.apache.servicemix.expression.Expression replyTo)

getSentDate

public org.apache.servicemix.expression.Expression getSentDate()

setSentDate

public void setSentDate(org.apache.servicemix.expression.Expression sentDate)

getDateFormat

public DateFormat getDateFormat()

setDateFormat

public void setDateFormat(DateFormat dateFormat)

getAttachments

public org.apache.servicemix.expression.Expression getAttachments()

setAttachments

public void setAttachments(org.apache.servicemix.expression.Expression attachments)

getSentDate

protected Date getSentDate(javax.jbi.messaging.MessageExchange exchange,
                           javax.jbi.messaging.NormalizedMessage normalizedMessage)
                    throws javax.jbi.messaging.MessagingException
Throws:
javax.jbi.messaging.MessagingException

getSubject

protected String getSubject(javax.jbi.messaging.MessageExchange exchange,
                            javax.jbi.messaging.NormalizedMessage normalizedMessage)
                     throws javax.jbi.messaging.MessagingException
Throws:
javax.jbi.messaging.MessagingException

getText

protected String getText(javax.jbi.messaging.MessageExchange exchange,
                         javax.jbi.messaging.NormalizedMessage normalizedMessage)
                  throws javax.jbi.messaging.MessagingException,
                         TransformerException
Throws:
javax.jbi.messaging.MessagingException
TransformerException

getHtml

protected String getHtml(javax.jbi.messaging.MessageExchange exchange,
                         javax.jbi.messaging.NormalizedMessage normalizedMessage)
                  throws javax.jbi.messaging.MessagingException,
                         TransformerException
Throws:
javax.jbi.messaging.MessagingException
TransformerException

asAddress

protected Address asAddress(Object value)
                     throws AddressException
Throws:
AddressException

asDate

protected Date asDate(Object value)

asAddressArray

protected Address[] asAddressArray(Object value)
                            throws AddressException
Throws:
AddressException

asStringOrStringArray

protected Object asStringOrStringArray(Object value)


Copyright © 2005-2010 The Apache Software Foundation. All Rights Reserved.