Class XmlTransformerService


  • public final class XmlTransformerService
    extends java.lang.Object
    This class provides methods to transform XML documents using XSLT.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void clearXslCache()
      This method clean XSL transformer 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, 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.
      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​(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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XmlTransformerService

        public XmlTransformerService()
    • Method Detail

      • 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