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, sourceTypes
PHASE_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, isSourceTypeSupported
checkReturnClass, generateTransformerName, getEndpoint, getName, getReturnClass, getSourceTypes, isConsumed, isIgnoreBadInput, isSourceTypeSupported, registerSourceType, setEndpoint, setIgnoreBadInput, setName, setReturnClass, toString, transform, unregisterSourceType
public static final String CUSTOM_HEADER_PREFIX
public void initialise() throws InitialisationException
AbstractTransformer
initialise
in interface Initialisable
initialise
in class AbstractTransformer
InitialisationException
- 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 AbstractMessageAwareTransformer
TransformerException
protected HttpResponse createResponse(Object src, String encoding, MuleMessage msg) throws IOException, TransformerException
IOException
TransformerException
public boolean isAcceptNull()
Transformer
isAcceptNull
in interface Transformer
isAcceptNull
in class AbstractTransformer
Copyright © 2003–2013 MuleSource, Inc.. All rights reserved.