net.javacrumbs.springws.test.template
Class XsltTemplateProcessor

java.lang.Object
  extended by net.javacrumbs.springws.test.template.XsltTemplateProcessor
All Implemented Interfaces:
TemplateProcessor

public class XsltTemplateProcessor
extends java.lang.Object
implements TemplateProcessor

Evaluates XSLT template.

Author:
Lukas Krecan

Constructor Summary
XsltTemplateProcessor()
           
 
Method Summary
 XmlUtil getXmlUtil()
           
protected  boolean isTemplate(org.springframework.core.io.Resource resource)
           
protected  org.w3c.dom.Document loadDocument(org.springframework.core.io.Resource resource)
           
 org.springframework.core.io.Resource processTemplate(org.springframework.core.io.Resource resource, org.springframework.ws.WebServiceMessage message)
          Processes the resource as template.
 void setXmlUtil(XmlUtil xmlUtil)
           
protected  org.springframework.core.io.Resource transform(org.springframework.core.io.Resource resource, org.springframework.ws.WebServiceMessage message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XsltTemplateProcessor

public XsltTemplateProcessor()
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

isTemplate

protected boolean isTemplate(org.springframework.core.io.Resource resource)
                      throws java.io.IOException
Throws:
java.io.IOException

loadDocument

protected org.w3c.dom.Document loadDocument(org.springframework.core.io.Resource resource)
                                     throws java.io.IOException
Throws:
java.io.IOException

transform

protected org.springframework.core.io.Resource transform(org.springframework.core.io.Resource resource,
                                                         org.springframework.ws.WebServiceMessage message)
                                                  throws java.io.IOException
Throws:
java.io.IOException

getXmlUtil

public XmlUtil getXmlUtil()

setXmlUtil

public void setXmlUtil(XmlUtil xmlUtil)


Copyright © 2011. All Rights Reserved.