com.oroad.stxx.plugin
Class PipelineHandler

java.lang.Object
  extended bycom.oroad.stxx.plugin.PipelineHandler

public class PipelineHandler
extends java.lang.Object

Parses and stores the transforms. Matches the request, through a Selector, to a transform which converts the XML into its final form. Usually, this means the XML is transformed by one or more XSL files to create HTML.

This plugin supports two different ways to define transforms. The first, present since v1.1 uses one transform definition per Struts action mapping. The second uses generic pipeline definitions to match Struts forwards. The first is deprecated and the second is prefered.

Author:
Jeff Pennal, Don Brown

Constructor Summary
PipelineHandler()
           
 
Method Summary
 ActionTransform findTransform(Selector transSelector, java.lang.String transformName, javax.servlet.http.HttpServletRequest request)
          Finds the requested Transform
 void init(javax.servlet.ServletContext ctx, java.util.Map props)
          Initializes the transforms from an XML file
 void populateTransformConfig(javax.servlet.ServletContext ctx, java.util.Map strutsProperties)
          Method populateTransformConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PipelineHandler

public PipelineHandler()
Method Detail

init

public void init(javax.servlet.ServletContext ctx,
                 java.util.Map props)
          throws javax.servlet.ServletException
Initializes the transforms from an XML file

Throws:
javax.servlet.ServletException

populateTransformConfig

public void populateTransformConfig(javax.servlet.ServletContext ctx,
                                    java.util.Map strutsProperties)
                             throws javax.servlet.ServletException
Method populateTransformConfig

Throws:
javax.servlet.ServletException

findTransform

public ActionTransform findTransform(Selector transSelector,
                                     java.lang.String transformName,
                                     javax.servlet.http.HttpServletRequest request)
Finds the requested Transform

Parameters:
transSelector - - The selector used to choose if a transform should be chosen or not
transformName - - The name of the transform to look up stylesheets
request - - The request object
Returns:
ActionTransform