public class MuleMessageToHttpResponse extends AbstractMessageAwareTransformer
UMOMessageToHttpResponse converts a UMOMEssage into an Http
response.| Modifier and Type | Field and Description |
|---|---|
static String |
CUSTOM_HEADER_PREFIX |
DEFAULT_TRUNCATE_LENGTH, endpoint, logger, name, returnClass, sourceTypesPHASE_NAME| Constructor and Description |
|---|
MuleMessageToHttpResponse() |
| Modifier and Type | Method and Description |
|---|---|
protected HttpResponse |
createResponse(Object src,
String encoding,
MuleMessage msg) |
void |
initialise()
Template method where deriving classes can do any initialisation after the
properties have been set on this transformer
|
boolean |
isAcceptNull()
Does this transformer allow null input?
|
Object |
transform(MuleMessage msg,
String outputEncoding) |
doTransform, isSourceTypeSupportedcheckReturnClass, generateTransformerName, getEndpoint, getName, getReturnClass, getSourceTypes, isConsumed, isIgnoreBadInput, isSourceTypeSupported, registerSourceType, setEndpoint, setIgnoreBadInput, setName, setReturnClass, toString, transform, unregisterSourceTypepublic static final String CUSTOM_HEADER_PREFIX
public void initialise()
throws InitialisationException
AbstractTransformerinitialise in interface Initialisableinitialise in class AbstractTransformerInitialisationException - if a fatal error occurs causing the Mule instance to shutdownRecoverableException - if an error occurs that can be recovered frompublic Object transform(MuleMessage msg, String outputEncoding) throws TransformerException
transform in class AbstractMessageAwareTransformerTransformerExceptionprotected HttpResponse createResponse(Object src, String encoding, MuleMessage msg) throws IOException, TransformerException
IOExceptionTransformerExceptionpublic boolean isAcceptNull()
TransformerisAcceptNull in interface TransformerisAcceptNull in class AbstractTransformerCopyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.