org.apache.portals.applications.transform.impl
Class JetspeedTransform

java.lang.Object
  extended byorg.apache.portals.applications.transform.impl.JetspeedTransform
All Implemented Interfaces:
Transform

public class JetspeedTransform
extends Object
implements Transform

TransformComponent

Version:
$Id: JetspeedTransform.java 263862 2005-08-28 11:17:12Z sgala $
Author:
David Sean Taylor

Field Summary
private static String CONFIG_JAX_FACTORY_DOM
           
private static String CONFIG_JAX_FACTORY_SAX
           
private static String CONFIG_JAX_FACTORY_TRANSFORM
           
private static DocumentBuilderFactory domFactory
           
private static Map dtds
           
private static String JAX_DOM_PARSER_PROPERTY
           
private static String JAX_SAX_PARSER_PROPERTY
           
private static String JAX_TRANSFORM_PROPERTY
           
private static String jaxDomFactoryProp
           
private static String jaxSaxFactoryProp
           
private static String jaxTransformFactoryProp
           
private static Object mutex
           
private  TransformObjectPublisher publisher
           
private static SAXParserFactory saxFactory
           
private static SAXTransformerFactory transformerFactory
           
 
Constructor Summary
JetspeedTransform()
           
 
Method Summary
 TransformObjectPublisher getPublisher()
          Performs a transform on an input stream, writing the transformed content to a Writer
 void transform(String xslt, Document document, OutputStream os, Map parameters)
           
 void transform(String xslt, InputSource inputSource, OutputStream os, Map parameters)
          Performs a transform on an input stream, writing the transformed content to a Writer
 void transform(String xslt, InputSource inputSource, Writer writer, Map parameters)
          Performs a transform on an input stream, writing the transformed content to a Writer
private static void transformStream(String xslt, Document document, StreamResult streamResult, Map parameters)
           
private static void transformStream(String xslt, InputSource inputSource, StreamResult streamResult, Map parameters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

domFactory

private static DocumentBuilderFactory domFactory

saxFactory

private static SAXParserFactory saxFactory

transformerFactory

private static SAXTransformerFactory transformerFactory

CONFIG_JAX_FACTORY_SAX

private static final String CONFIG_JAX_FACTORY_SAX
See Also:
Constant Field Values

jaxSaxFactoryProp

private static final String jaxSaxFactoryProp
See Also:
Constant Field Values

CONFIG_JAX_FACTORY_DOM

private static final String CONFIG_JAX_FACTORY_DOM
See Also:
Constant Field Values

jaxDomFactoryProp

private static final String jaxDomFactoryProp
See Also:
Constant Field Values

CONFIG_JAX_FACTORY_TRANSFORM

private static final String CONFIG_JAX_FACTORY_TRANSFORM
See Also:
Constant Field Values

jaxTransformFactoryProp

private static final String jaxTransformFactoryProp
See Also:
Constant Field Values

mutex

private static final Object mutex

JAX_TRANSFORM_PROPERTY

private static final String JAX_TRANSFORM_PROPERTY
See Also:
Constant Field Values

JAX_SAX_PARSER_PROPERTY

private static final String JAX_SAX_PARSER_PROPERTY
See Also:
Constant Field Values

JAX_DOM_PARSER_PROPERTY

private static final String JAX_DOM_PARSER_PROPERTY
See Also:
Constant Field Values

dtds

private static Map dtds

publisher

private TransformObjectPublisher publisher
Constructor Detail

JetspeedTransform

public JetspeedTransform()
Method Detail

transform

public void transform(String xslt,
                      InputSource inputSource,
                      OutputStream os,
                      Map parameters)
               throws TransformException
Description copied from interface: Transform
Performs a transform on an input stream, writing the transformed content to a Writer

Specified by:
transform in interface Transform
Parameters:
xslt - The path to a local XSLT file
inputSource - The input stream and description containing content to be transformed.
parameters - Map of XSLT properties passed into transformer
Throws:
TransformException

transform

public void transform(String xslt,
                      InputSource inputSource,
                      Writer writer,
                      Map parameters)
               throws TransformException
Description copied from interface: Transform
Performs a transform on an input stream, writing the transformed content to a Writer

Specified by:
transform in interface Transform
Parameters:
xslt - The path to a local XSLT file
inputSource - The input stream and description containing content to be transformed.
writer - The output stream receiving the transformed content.
parameters - Map of XSLT properties passed into transformer
Throws:
TransformException

transformStream

private static void transformStream(String xslt,
                                    InputSource inputSource,
                                    StreamResult streamResult,
                                    Map parameters)
                             throws TransformException
Throws:
TransformException

transformStream

private static void transformStream(String xslt,
                                    Document document,
                                    StreamResult streamResult,
                                    Map parameters)
                             throws TransformException
Throws:
TransformException

transform

public void transform(String xslt,
                      Document document,
                      OutputStream os,
                      Map parameters)
               throws TransformException
Specified by:
transform in interface Transform
Throws:
TransformException

getPublisher

public TransformObjectPublisher getPublisher()
Description copied from interface: Transform
Performs a transform on an input stream, writing the transformed content to a Writer

Specified by:
getPublisher in interface Transform


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.