org.apache.servicemix.jbi.transformer
Interface MessageTransformer

All Known Implementing Classes:
CopyTransformer, PropertyAddTransformer

public interface MessageTransformer

Represents a transformer of an input message into an output message

Version:
$Revision: 426415 $

Method Summary
 javax.jbi.messaging.NormalizedMessage transform(javax.jbi.messaging.MessageExchange exchange, javax.jbi.messaging.NormalizedMessage in)
          Transforms an input message into the returned output message
 boolean transform(javax.jbi.messaging.MessageExchange exchange, javax.jbi.messaging.NormalizedMessage in, javax.jbi.messaging.NormalizedMessage out)
          Transfers the state in the input message into the output message
 

Method Detail

transform

boolean transform(javax.jbi.messaging.MessageExchange exchange,
                  javax.jbi.messaging.NormalizedMessage in,
                  javax.jbi.messaging.NormalizedMessage out)
                  throws javax.jbi.messaging.MessagingException
Transfers the state in the input message into the output message

Parameters:
exchange - the exchange on which the messages are flowing
in - the input message
out - an empty out message ready to contain the result of the transformation
Throws:
javax.jbi.messaging.MessagingException

transform

javax.jbi.messaging.NormalizedMessage transform(javax.jbi.messaging.MessageExchange exchange,
                                                javax.jbi.messaging.NormalizedMessage in)
                                                throws javax.jbi.messaging.MessagingException
Transforms an input message into the returned output message

Parameters:
exchange - the exchange fon which the messages are flowing
in - the input message
Returns:
the output message or null if the output message co
Throws:
javax.jbi.messaging.MessagingException - when an error occurs while transforming the message


Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.