net.shibboleth.metadata.dom
Class MultiOutputXSLTransformationStage

java.lang.Object
  extended by net.shibboleth.utilities.java.support.component.AbstractDestructableInitializableComponent
      extended by net.shibboleth.utilities.java.support.component.AbstractDestructableIdentifiableInitializableComponent
          extended by net.shibboleth.metadata.pipeline.BaseStage<DomElementItem>
              extended by net.shibboleth.metadata.dom.AbstractXSLProcessingStage
                  extended by net.shibboleth.metadata.dom.MultiOutputXSLTransformationStage
All Implemented Interfaces:
Stage<DomElementItem>, net.shibboleth.utilities.java.support.component.Component, net.shibboleth.utilities.java.support.component.DestructableComponent, net.shibboleth.utilities.java.support.component.IdentifiableComponent, net.shibboleth.utilities.java.support.component.InitializableComponent

@ThreadSafe
public class MultiOutputXSLTransformationStage
extends AbstractXSLProcessingStage

A pipeline stage which transforms each item in the DomElementItem collection via an XSL transform. Each of the input items may result in zero, one or more XML elements, each of which results in a DomElementItem in the resulting collection. The resulting DomElementItems receive 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
MultiOutputXSLTransformationStage()
           
 
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
doDestroy, doExecute, doInitialize, getTransformAttributes, getTransformFeatures, getTransformParameters, getXslResource, setTransformAttributes, setTransformFeatures, setTransformParameters, setXslResource
 
Methods inherited from class net.shibboleth.metadata.pipeline.BaseStage
execute, setId
 
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractDestructableIdentifiableInitializableComponent
getId
 
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractDestructableInitializableComponent
destroy, initialize, isDestroyed, isInitialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.shibboleth.utilities.java.support.component.DestructableComponent
destroy, isDestroyed
 
Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiableComponent
getId
 
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
 

Constructor Detail

MultiOutputXSLTransformationStage

public MultiOutputXSLTransformationStage()
Method Detail

executeTransformer

protected void executeTransformer(@Nonnull
                                  Transformer transformer,
                                  @Nonnull@NonnullElements
                                  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 © 1999-2012. All Rights Reserved.