MuleMessageToHttpResponse (Mule ESB 2.2.1 API)
Keywords: org.mule.transport.http.transformers.MuleMessageToHttpResponse class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Field Summary
`static String` | `CUSTOM_HEADER_PREFIX`

Fields inherited from class org.mule.transformer.AbstractTransformer
`DEFAULT_TRUNCATE_LENGTH, endpoint, logger, name, returnClass, sourceTypes`

Fields inherited from interface org.mule.api.lifecycle.Initialisable
`PHASE_NAME`

Constructor Summary
`MuleMessageToHttpResponse()`

Method Summary
`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)`

Methods inherited from class org.mule.transformer.AbstractMessageAwareTransformer
`doTransform, isSourceTypeSupported`

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`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Field Detail

### CUSTOM_HEADER_PREFIX

    public static final String CUSTOM_HEADER_PREFIX

See Also:
  Constant Field Values

Constructor Detail

### MuleMessageToHttpResponse

    public MuleMessageToHttpResponse()

Method Detail

### 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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.