fr.paris.lutece.portal.service.html
Class XmlTransformerService

java.lang.Object
  extended by fr.paris.lutece.portal.service.html.XmlTransformerService

public final class XmlTransformerService
extends java.lang.Object

This class provides methods to transform XML documents using XSLT.


Constructor Summary
XmlTransformerService()
           
 
Method Summary
static void clearXslCache()
          This method clean XSL transformer cache
static java.lang.String transformBySource(java.lang.String strXml, byte[] baSource, java.util.Map<java.lang.String,java.lang.String> params)
          Deprecated. 
static java.lang.String transformBySource(java.lang.String strXml, byte[] baSource, java.util.Map<java.lang.String,java.lang.String> params, java.util.Properties outputProperties)
          Deprecated. 
static java.lang.String transformBySource(java.lang.String strXml, javax.xml.transform.Source sourceStyleSheet, java.util.Map<java.lang.String,java.lang.String> params, java.util.Properties outputProperties)
          Deprecated. 
 java.lang.String transformBySourceWithXslCache(javax.xml.transform.Source sourceXml, javax.xml.transform.Source sourceStyleSheet, java.lang.String strStyleSheetId, java.util.Map<java.lang.String,java.lang.String> params, java.util.Properties outputProperties)
          This method performs XSL transformation with cache.
 java.lang.String transformBySourceWithXslCache(java.lang.String strXml, byte[] baSource, java.lang.String strStyleSheetId, java.util.Map<java.lang.String,java.lang.String> params)
          This method performs XSL transformation with cache.
 java.lang.String transformBySourceWithXslCache(java.lang.String strXml, byte[] baSource, java.lang.String strStyleSheetId, java.util.Map<java.lang.String,java.lang.String> params, java.util.Properties outputProperties)
          This method performs XSL transformation with cache.
 java.lang.String transformBySourceWithXslCache(java.lang.String strXml, javax.xml.transform.Source sourceStyleSheet, java.lang.String strStyleSheetId, java.util.Map<java.lang.String,java.lang.String> params, java.util.Properties outputProperties)
          This method performs XSL transformation with cache.
 java.lang.String transformBySourceWithXslCache(java.lang.String strXml, StyleSheet xslSource, java.util.Map<java.lang.String,java.lang.String> params)
          This method performs XSL transformation with cache.
 java.lang.String transformBySourceWithXslCache(java.lang.String strXml, StyleSheet xslSource, java.util.Map<java.lang.String,java.lang.String> params, java.util.Properties outputProperties)
          This method performs XSL transformation with cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlTransformerService

public XmlTransformerService()
Method Detail

transformBySource

@Deprecated
public static java.lang.String transformBySource(java.lang.String strXml,
                                                            byte[] baSource,
                                                            java.util.Map<java.lang.String,java.lang.String> params)
Deprecated. 

This method performes XSL transformation.

Parameters:
strXml - The XML document content
baSource - The XSL source
params - Parameters that can be used by the XSL stylesheet
Returns:
The output document

transformBySource

@Deprecated
public static java.lang.String transformBySource(java.lang.String strXml,
                                                            byte[] baSource,
                                                            java.util.Map<java.lang.String,java.lang.String> params,
                                                            java.util.Properties outputProperties)
Deprecated. 

This method performes XSL transformation.

Parameters:
strXml - The XML document content
baSource - The XSL source
params - Parameters that can be used by the XSL stylesheet
outputProperties - properties to use for the xsl transform. Will overload the xsl output definition.
Returns:
The output document

transformBySource

@Deprecated
public static java.lang.String transformBySource(java.lang.String strXml,
                                                            javax.xml.transform.Source sourceStyleSheet,
                                                            java.util.Map<java.lang.String,java.lang.String> params,
                                                            java.util.Properties outputProperties)
Deprecated. 

This method performes XSL transformation.

Parameters:
strXml - The XML document content
sourceStyleSheet - The XSL source
params - Parameters that can be used by the XSL stylesheet
outputProperties - properties to use for the xsl transform. Will overload the xsl output definition.
Returns:
The output document

transformBySourceWithXslCache

public java.lang.String transformBySourceWithXslCache(java.lang.String strXml,
                                                      StyleSheet xslSource,
                                                      java.util.Map<java.lang.String,java.lang.String> params)
This method performs XSL transformation with cache.

Parameters:
strXml - The XML document content
xslSource - The XSL source
params - Parameters that can be used by the XSL StyleSheet
Returns:
the output html

transformBySourceWithXslCache

public java.lang.String transformBySourceWithXslCache(java.lang.String strXml,
                                                      StyleSheet xslSource,
                                                      java.util.Map<java.lang.String,java.lang.String> params,
                                                      java.util.Properties outputProperties)
This method performs XSL transformation with cache.

Parameters:
strXml - The XML document content
xslSource - The XSL source
params - Parameters that can be used by the XSL StyleSheet
outputProperties - Properties to use for the XSL transform. Will overload the XSL output definition.
Returns:
the output html

transformBySourceWithXslCache

public java.lang.String transformBySourceWithXslCache(java.lang.String strXml,
                                                      byte[] baSource,
                                                      java.lang.String strStyleSheetId,
                                                      java.util.Map<java.lang.String,java.lang.String> params)
This method performs XSL transformation with cache.

Parameters:
strXml - The XML document content
baSource - The XSL source
strStyleSheetId - The StyleSheet Id
params - Parameters that can be used by the XSL StyleSheet
Returns:
The output document

transformBySourceWithXslCache

public java.lang.String transformBySourceWithXslCache(java.lang.String strXml,
                                                      byte[] baSource,
                                                      java.lang.String strStyleSheetId,
                                                      java.util.Map<java.lang.String,java.lang.String> params,
                                                      java.util.Properties outputProperties)
This method performs XSL transformation with cache.

Parameters:
strXml - The XML document content
baSource - The XSL source
strStyleSheetId - The StyleSheet Id
params - Parameters that can be used by the XSL StyleSheet
outputProperties - Properties to use for the XSL transform. Will overload the XSL output definition.
Returns:
The output document

transformBySourceWithXslCache

public java.lang.String transformBySourceWithXslCache(java.lang.String strXml,
                                                      javax.xml.transform.Source sourceStyleSheet,
                                                      java.lang.String strStyleSheetId,
                                                      java.util.Map<java.lang.String,java.lang.String> params,
                                                      java.util.Properties outputProperties)
This method performs XSL transformation with cache.

Parameters:
strXml - The XML document content
sourceStyleSheet - The XSL source
strStyleSheetId - The StyleSheet Id
params - Parameters that can be used by the XSL StyleSheet
outputProperties - the output parameter
Returns:
The output document

transformBySourceWithXslCache

public java.lang.String transformBySourceWithXslCache(javax.xml.transform.Source sourceXml,
                                                      javax.xml.transform.Source sourceStyleSheet,
                                                      java.lang.String strStyleSheetId,
                                                      java.util.Map<java.lang.String,java.lang.String> params,
                                                      java.util.Properties outputProperties)
This method performs XSL transformation with cache.

Parameters:
sourceXml - The XML document content
sourceStyleSheet - The XSL source
strStyleSheetId - The StyleSheet Id
params - Parameters that can be used by the XSL StyleSheet
outputProperties - the output parameter
Returns:
The output document

clearXslCache

public static void clearXslCache()
This method clean XSL transformer cache



Copyright © 2012 Mairie de Paris. All Rights Reserved.