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.jms.transformers
Class JMSMessageToObject

    java.lang.Object
      org.mule.transformer.AbstractTransformer
          org.mule.transformer.AbstractMessageAwareTransformer
              org.mule.transport.jms.transformers.AbstractJmsTransformer
                  org.mule.transport.jms.transformers.JMSMessageToObject

All Implemented Interfaces:
  MuleContextAware, Initialisable, NamedObject, BaseTransformer, DiscoverableTransformer, Transformer

    public class JMSMessageToObject

extends AbstractJmsTransformer

`JMSMessageToObject` Will convert a `javax.jms.Message` or sub-type into an object by extracting the message payload. Users of this transformer can set different return types on the transform to control the way it behaves.

- javax.jms.TextMessage - java.lang.String
- javax.jms.ObjectMessage - java.lang.Object
- javax.jms.BytesMessage - Byte[]. Note that the transformer will check if the payload is compressed and automatically uncompress the message.
- javax.jms.MapMessage - java.util.Map
- javax.jms.StreamMessage - java.util.Vector of objects from the Stream Message.

Field Summary

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

Fields inherited from interface org.mule.api.transformer.DiscoverableTransformer
`DEFAULT_PRIORITY_WEIGHTING, MAX_PRIORITY_WEIGHTING, MIN_PRIORITY_WEIGHTING`

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

Constructor Summary
`JMSMessageToObject()`

Method Summary
`protected void` | `declareInputOutputClasses()`
`Object` | `transform(MuleMessage message, String outputEncoding)`

Methods inherited from class org.mule.transport.jms.transformers.AbstractJmsTransformer
`getPriorityWeighting, getSession, setJmsProperties, setPriorityWeighting, transformFromMessage, transformToMessage`

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

Methods inherited from class org.mule.transformer.AbstractTransformer
`checkReturnClass, generateTransformerName, getEncoding, getEndpoint, getName, getReturnClass, getSourceTypes, initialise, isAcceptNull, isConsumed, isIgnoreBadInput, isSourceTypeSupported, registerSourceType, setEndpoint, setIgnoreBadInput, setMuleContext, setName, setReturnClass, toString, transform, transform, unregisterSourceType`

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

Constructor Detail

### JMSMessageToObject

    public JMSMessageToObject()

Method Detail

### declareInputOutputClasses

    protected void declareInputOutputClasses()

  Specified by:
    `declareInputOutputClasses` in class `AbstractJmsTransformer`

### transform

    public Object transform(MuleMessage message,
                            String outputEncoding)
                     throws TransformerException

  Specified by:
    `transform` in class `AbstractMessageAwareTransformer`
  Throws:
    `TransformerException`

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.