public class NodeProcessingMetadataFilter extends net.shibboleth.utilities.java.support.component.AbstractInitializableComponent implements MetadataFilter
MetadataFilter
which applies a MetadataNodeProcessor
to each element node in the
metadata document tree. The node processors will be applied in the order of List
provided by
setNodeProcessors(List)
. The metadata document tree is traversed depth-first.Constructor and Description |
---|
NodeProcessingMetadataFilter()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doDestroy() |
XMLObject |
filter(XMLObject metadata)
Filters the given metadata, perhaps to remove elements that are not wanted.
|
List<MetadataNodeProcessor> |
getNodeProcessors()
Get the list of metadata node processors.
|
protected void |
processNode(XMLObject node)
Process an individual metadata node.
|
void |
setNodeProcessors(List<MetadataNodeProcessor> newProcessors)
Set the list of metadata node processors.
|
@Nonnull @NonnullElements @Live public List<MetadataNodeProcessor> getNodeProcessors()
public void setNodeProcessors(@Nonnull @NonnullElements List<MetadataNodeProcessor> newProcessors)
newProcessors
- the new list of processors to set.@Nullable public XMLObject filter(@Nullable XMLObject metadata) throws FilterException
filter
in interface MetadataFilter
metadata
- the metadata to be filtered.FilterException
- thrown if an error occurs during the filtering processprotected void doDestroy()
doDestroy
in class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
protected void processNode(XMLObject node) throws FilterException
node
- the metadata node to process.FilterException
- if a fatal error is encountered while processing a nodeCopyright © 2017. All rights reserved.