Spring Integration

org.springframework.integration.xml.transformer
Class DefaultTransformerConfigurer

java.lang.Object
  extended by org.springframework.integration.xml.transformer.DefaultTransformerConfigurer
All Implemented Interfaces:
TransformerConfigurer

public class DefaultTransformerConfigurer
extends Object
implements TransformerConfigurer

TransformerConfigurer instance which looks for headers and uses them to configure the provided Transformer instance. For example a header named 'xslt_parameter_X' will cause the transformer to be configured with a property named 'X' with the value of the header. A property named 'xslt_output_property_X' will cause an output property on the transformer to be set with this header's value.

Author:
Jonas Partner

Constructor Summary
DefaultTransformerConfigurer()
           
 
Method Summary
 void configureTransformer(Message<?> message, Transformer transformer)
          Callback method called by XSLT transformer implementations after transformer is created.
protected  Map<String,String> extractOutputPropertyHeaders(MessageHeaders headers)
           
protected  Map<String,Object> extractParameterHeaders(MessageHeaders headers)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTransformerConfigurer

public DefaultTransformerConfigurer()
Method Detail

configureTransformer

public void configureTransformer(Message<?> message,
                                 Transformer transformer)
Description copied from interface: TransformerConfigurer
Callback method called by XSLT transformer implementations after transformer is created.

Specified by:
configureTransformer in interface TransformerConfigurer

extractOutputPropertyHeaders

protected Map<String,String> extractOutputPropertyHeaders(MessageHeaders headers)

extractParameterHeaders

protected Map<String,Object> extractParameterHeaders(MessageHeaders headers)

Spring Integration

Copyright © 2010. All Rights Reserved.