org.jboss.soa.esb.actions.converters
Class StreamToSourceResult

java.lang.Object
  extended by org.jboss.soa.esb.actions.converters.StreamToSourceResult
All Implemented Interfaces:
BeanConfiguredAction

public class StreamToSourceResult
extends java.lang.Object
implements BeanConfiguredAction

StreamToSourceResult prepares the message object before invoking a Smooks transformation.

Some tranformation need more control over the input and output generated by Smooks. By creating a SourceResult the calling application can control the types of input and output Result object.

This specific action creates a SourceResult with a StreamSource containing an InputStream located in the default body location.
The Result for this SourceResult will be null, as we don't want any processing of the result. This
is useful when you have very large files that need to be processed and using a Smooks router to route
the results and not process them. Example configuration:

<action name="createSourceResult" class="org.jboss.soa.esb.actions.converters.StreamToSourceResult"/>
 

Since:
4.3
Author:
Daniel Bevenius

Constructor Summary
StreamToSourceResult()
           
 
Method Summary
 Message process(Message message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamToSourceResult

public StreamToSourceResult()
Method Detail

process

public Message process(Message message)