net.shibboleth.metadata.dom
Class XSLTransformationStage
java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractDestructableInitializableComponent
net.shibboleth.utilities.java.support.component.AbstractDestructableIdentifiableInitializableComponent
net.shibboleth.metadata.pipeline.BaseStage<DomElementItem>
net.shibboleth.metadata.dom.AbstractXSLProcessingStage
net.shibboleth.metadata.dom.XSLTransformationStage
- 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 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.
| 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.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 |
XSLTransformationStage
public XSLTransformationStage()
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.