net.javacrumbs.springws.test.template
Class FreeMarkerTemplateProcessor

java.lang.Object
  extended by net.javacrumbs.springws.test.template.FreeMarkerTemplateProcessor
All Implemented Interfaces:
TemplateProcessor, org.springframework.beans.factory.InitializingBean, org.springframework.context.ResourceLoaderAware

public class FreeMarkerTemplateProcessor
extends java.lang.Object
implements TemplateProcessor, org.springframework.beans.factory.InitializingBean, org.springframework.context.ResourceLoaderAware

Processes a freemarker template.

Author:
Lukas Krecan

Constructor Summary
FreeMarkerTemplateProcessor()
           
 
Method Summary
 void afterPropertiesSet()
           
 org.springframework.ui.freemarker.FreeMarkerConfigurationFactory getConfigurationFactory()
           
 org.springframework.core.io.ResourceLoader getResourceLoader()
           
 XmlUtil getXmlUtil()
           
 org.springframework.core.io.Resource processTemplate(org.springframework.core.io.Resource resource, org.springframework.ws.WebServiceMessage message)
          Processes the resource as template.
 void setConfigurationFactory(org.springframework.ui.freemarker.FreeMarkerConfigurationFactory configurationFactory)
           
 void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
           
 void setXmlUtil(XmlUtil xmlUtil)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FreeMarkerTemplateProcessor

public FreeMarkerTemplateProcessor()
Method Detail

processTemplate

public org.springframework.core.io.Resource processTemplate(org.springframework.core.io.Resource resource,
                                                            org.springframework.ws.WebServiceMessage message)
                                                     throws java.io.IOException
Description copied from interface: TemplateProcessor
Processes the resource as template. Returns resource with processed data. If the processor is not applicable returns original resource or its copy.

Specified by:
processTemplate in interface TemplateProcessor
message - Message to be used in template as input. Can be null
Returns:
Throws:
java.io.IOException

afterPropertiesSet

public void afterPropertiesSet()
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean

getConfigurationFactory

public org.springframework.ui.freemarker.FreeMarkerConfigurationFactory getConfigurationFactory()

setConfigurationFactory

public void setConfigurationFactory(org.springframework.ui.freemarker.FreeMarkerConfigurationFactory configurationFactory)

getResourceLoader

public org.springframework.core.io.ResourceLoader getResourceLoader()

setResourceLoader

public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
Specified by:
setResourceLoader in interface org.springframework.context.ResourceLoaderAware

getXmlUtil

public XmlUtil getXmlUtil()

setXmlUtil

public void setXmlUtil(XmlUtil xmlUtil)


Copyright © 2011. All Rights Reserved.