net.shibboleth.metadata.dom
Class XSLTransformationStage

java.lang.Object
  extended by net.shibboleth.metadata.pipeline.AbstractComponent
      extended by net.shibboleth.metadata.pipeline.BaseStage<DomElementItem>
          extended by net.shibboleth.metadata.dom.AbstractXSLProcessingStage
              extended by net.shibboleth.metadata.dom.XSLTransformationStage
All Implemented Interfaces:
Component, Stage<DomElementItem>

@ThreadSafe
public class XSLTransformationStage
extends AbstractXSLProcessingStage

A pipeline stage which transforms each item in the DomElementItem collection via an XSL transform. Each item is replaced by an item constructed from the result of the transform. The result DomElementItem receives InfoStatus, WarningStatus, and ErrorStatus metadata via the AbstractXSLProcessingStage.StatusInfoAppendingErrorListener.


Nested Class Summary
 
Nested classes/interfaces inherited from class net.shibboleth.metadata.dom.AbstractXSLProcessingStage
AbstractXSLProcessingStage.StatusInfoAppendingErrorListener
 
Constructor Summary
XSLTransformationStage()
           
 
Method Summary
protected  void executeTransformer(Transformer transformer, Collection<DomElementItem> itemCollection)
          Executes the XSLT transform on the given collection of Items.
 
Methods inherited from class net.shibboleth.metadata.dom.AbstractXSLProcessingStage
doExecute, doInitialize, getTransformAttributes, getTransformFeatures, getTransformParameters, getXslResource, setTransformAttributes, setTransformFeatures, setTransformParameters, setXslResource
 
Methods inherited from class net.shibboleth.metadata.pipeline.BaseStage
execute
 
Methods inherited from class net.shibboleth.metadata.pipeline.AbstractComponent
equals, getId, getInitializationInstant, hashCode, initialize, isInitialized, setId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.shibboleth.metadata.pipeline.Component
getId, getInitializationInstant, initialize, isInitialized
 

Constructor Detail

XSLTransformationStage

public XSLTransformationStage()
Method Detail

executeTransformer

protected void executeTransformer(Transformer transformer,
                                  Collection<DomElementItem> itemCollection)
                           throws StageProcessingException,
                                  TransformerConfigurationException
Executes the XSLT transform on the given collection of Items.

Specified by:
executeTransformer in class AbstractXSLProcessingStage
Parameters:
transformer - The transform to be applied to each Item. Already has all AbstractXSLProcessingStage.transformParameters set.
itemCollection - the Items to which the transform should be applied
Throws:
StageProcessingException - thrown if there is a problem applying the transform to Items
TransformerConfigurationException - thrown if there is a problem with the Transform itself


Copyright © 2009-2011. All Rights Reserved.