org.mule.transport.http.transformers
Class MuleMessageToHttpResponse
java.lang.Object
org.mule.transformer.AbstractTransformer
org.mule.transformer.AbstractMessageAwareTransformer
org.mule.transport.http.transformers.MuleMessageToHttpResponse
- All Implemented Interfaces:
- Initialisable, NamedObject, BaseTransformer, Transformer
public class MuleMessageToHttpResponse
- extends AbstractMessageAwareTransformer
Converts a UMOMEssage into an Http response.
Methods inherited from class org.mule.transformer.AbstractTransformer |
checkReturnClass, generateTransformerName, getEndpoint, getName, getReturnClass, getSourceTypes, isConsumed, isIgnoreBadInput, isSourceTypeSupported, registerSourceType, setEndpoint, setIgnoreBadInput, setName, setReturnClass, toString, transform, unregisterSourceType |
CUSTOM_HEADER_PREFIX
public static final String CUSTOM_HEADER_PREFIX
- See Also:
- Constant Field Values
MuleMessageToHttpResponse
public MuleMessageToHttpResponse()
initialise
public void initialise()
throws InitialisationException
- Description copied from class:
AbstractTransformer
- Template method where deriving classes can do any initialisation after the
properties have been set on this transformer
- Specified by:
initialise
in interface Initialisable
- Overrides:
initialise
in class AbstractTransformer
- Throws:
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdown
RecoverableException
- if an error occurs that can be recovered from
transform
public Object transform(MuleMessage msg,
String outputEncoding)
throws TransformerException
- Specified by:
transform
in class AbstractMessageAwareTransformer
- Throws:
TransformerException
createResponse
protected HttpResponse createResponse(Object src,
String encoding,
MuleMessage msg)
throws IOException,
TransformerException
- Throws:
IOException
TransformerException
isAcceptNull
public boolean isAcceptNull()
- Description copied from interface:
Transformer
- Does this transformer allow null input?
- Specified by:
isAcceptNull
in interface Transformer
- Overrides:
isAcceptNull
in class AbstractTransformer
- Returns:
- true if this transformer can accept null input
Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.