|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.shibboleth.metadata.pipeline.AbstractComponent
net.shibboleth.metadata.pipeline.BaseStage<DomElementItem>
net.shibboleth.metadata.dom.AbstractXSLProcessingStage
@ThreadSafe public abstract class AbstractXSLProcessingStage
A pipeline stage which applies and XSLT to each element in the DomElementItem collection.
This stage requires the following properties be set prior to initialization:
xslResource
| Nested Class Summary | |
|---|---|
class |
AbstractXSLProcessingStage.StatusInfoAppendingErrorListener
Transformer ErrorListener that sets an ErrorStatus or WarningStatus on its
Item depending on the TransformerException message. |
| Field Summary | |
|---|---|
private Logger |
log
Class logger. |
private Map<String,Object> |
transformAttributes
Attributes set on the Transformer used by this stage. |
private Map<String,Boolean> |
transformFeatures
Features set on the Transformer used by this stage. |
private Map<String,Object> |
transformParameters
Collection of named parameters to make available to the transform. |
private org.opensaml.util.resource.Resource |
xslResource
Resource that provides the XSL document. |
private Templates |
xslTemplate
XSL template used to transform Elements. |
| Constructor Summary | |
|---|---|
AbstractXSLProcessingStage()
|
|
| Method Summary | |
|---|---|
protected void |
doExecute(Collection<DomElementItem> itemCollection)
Performs the stage processing on the given Item collection. |
protected void |
doInitialize()
Do the initialization of the component. |
protected abstract void |
executeTransformer(Transformer transformer,
Collection<DomElementItem> itemCollection)
Executes the XSLT transform on the given collection of Items. |
Map<String,Object> |
getTransformAttributes()
Gets the unmodifiable collection of attributes used by the XSLT transformer. |
Map<String,Boolean> |
getTransformFeatures()
Gets the unmodifiable collection of features used by the XSLT transformer. |
Map<String,Object> |
getTransformParameters()
Gets the unmodifiable collection of parameters used by the XSLT transformer. |
org.opensaml.util.resource.Resource |
getXslResource()
Gets the resource that provides the XSL document. |
void |
setTransformAttributes(Map<String,Object> attributes)
Sets the collection of attributes used by the XSLT transformer. |
void |
setTransformFeatures(Map<String,Boolean> features)
Sets the collection of features used by the XSLT transformer. |
void |
setTransformParameters(Map<String,Object> parameters)
Sets the named parameters for the transform. |
void |
setXslResource(org.opensaml.util.resource.Resource resource)
Sets the resource that provides the XSL document. |
| 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 |
| Field Detail |
|---|
private final Logger log
private org.opensaml.util.resource.Resource xslResource
private Templates xslTemplate
private Map<String,Object> transformAttributes
Transformer used by this stage.
private Map<String,Boolean> transformFeatures
Transformer used by this stage.
private Map<String,Object> transformParameters
| Constructor Detail |
|---|
public AbstractXSLProcessingStage()
| Method Detail |
|---|
public org.opensaml.util.resource.Resource getXslResource()
public void setXslResource(org.opensaml.util.resource.Resource resource)
resource - resource that provides the XSL documentpublic Map<String,Object> getTransformAttributes()
public void setTransformAttributes(Map<String,Object> attributes)
attributes - collection of attributes used by the XSLT transformer, may be null or contain null keyspublic Map<String,Boolean> getTransformFeatures()
public void setTransformFeatures(Map<String,Boolean> features)
features - collection of features used by the XSLT transformer, may be null or contain null keyspublic Map<String,Object> getTransformParameters()
public void setTransformParameters(Map<String,Object> parameters)
parameters - parameters for the transform, may be null or contain null keys
protected void doExecute(Collection<DomElementItem> itemCollection)
throws StageProcessingException
doExecute in class BaseStage<DomElementItem>itemCollection - collection to be processed
StageProcessingException - thrown if there is an unrecoverable problem when processing the stage
protected abstract void executeTransformer(Transformer transformer,
Collection<DomElementItem> itemCollection)
throws StageProcessingException,
TransformerConfigurationException
transformer - The transform to be applied to each Item. Already has all transformParameters set.itemCollection - the Items to which the transform should be applied
StageProcessingException - thrown if there is a problem applying the transform to Items
TransformerConfigurationException - thrown if there is a problem with the Transform itself
protected void doInitialize()
throws ComponentInitializationException
doInitialize in class AbstractComponentComponentInitializationException - throw if there is a problem initializing the component
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||