net.shibboleth.metadata.dom
Class XSLValidationStage

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.XSLValidationStage
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 XSLValidationStage
extends AbstractXSLProcessingStage

A pipeline which "validates" each element in the DomElementItem collection via an XSL stylesheet. The results of the transform are discarded but the source element 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
XSLValidationStage()
           
 
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

XSLValidationStage

public XSLValidationStage()
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.