public class StringToEmailMessage extends AbstractMessageTransformer
StringToEmailMessage
will convert a String to a JavaMail Message,
using the String as the contents. This implementation uses properties on the
transformer to determine the To: and Subject: fields.encoding, endpoint, mimeType, MULE_MESSAGE_DATA_TYPE, muleContext, name, returnType, sourceTypes
PHASE_NAME
PHASE_NAME
PROPERTY_NAME
Constructor and Description |
---|
StringToEmailMessage() |
Modifier and Type | Method and Description |
---|---|
String |
evaluate(String value,
MuleMessage message) |
protected String |
lookupProperty(MuleMessage message,
String propName,
String defaultValue)
Searches in outbound, then invocation scope.
|
protected void |
setContent(Object payload,
Message msg,
String contentType,
MuleMessage message) |
Object |
transformMessage(MuleMessage message,
String outputEncoding)
Transform the message
|
checkReturnClass, doTransform, isSourceDataTypeSupported, transform, transform, transform
dispose, generateTransformerName, getAnnotation, getAnnotations, getEncoding, getEncoding, getEndpoint, getMimeType, getName, getReturnClass, getReturnDataType, getSourceDataTypes, getSourceTypes, initialise, isAcceptNull, isAllowNullReturn, isConsumed, isIgnoreBadInput, isSourceDataTypeSupported, isSourceTypeSupported, isSourceTypeSupported, process, registerSourceType, registerSourceType, setAllowNullReturn, setAnnotations, setEncoding, setEndpoint, setIgnoreBadInput, setMimeType, setMuleContext, setName, setReturnClass, setReturnDataType, toString, transform, unregisterSourceType, unregisterSourceType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEncoding, getEndpoint, getMimeType, getReturnClass, getReturnDataType, getSourceDataTypes, getSourceTypes, isAcceptNull, isIgnoreBadInput, isSourceDataTypeSupported, isSourceTypeSupported, setReturnClass, setReturnDataType, transform
process
initialise
dispose
setName
getName
setMuleContext
setEndpoint
public Object transformMessage(MuleMessage message, String outputEncoding) throws TransformerException
AbstractMessageTransformer
transformMessage
in class AbstractMessageTransformer
TransformerException
protected String lookupProperty(MuleMessage message, String propName, String defaultValue)
public String evaluate(String value, MuleMessage message)
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.