org.opensaml.saml2.metadata.provider
Class MetadataFilterChain

java.lang.Object
  extended by org.opensaml.saml2.metadata.provider.MetadataFilterChain
All Implemented Interfaces:
MetadataFilter

public class MetadataFilterChain
extends Object
implements MetadataFilter

A filter that allows the composition of MetadataFilters. Filters will be executed on the given metadata document in the order they were added to the chain.


Field Summary
private  List<MetadataFilter> filters
          Registered filters.
private  org.slf4j.Logger log
          Class logger.
 
Constructor Summary
MetadataFilterChain()
          Constructor.
 
Method Summary
 void doFilter(XMLObject xmlObject)
          Filters the given metadata, perhaps to remove elements that are not wanted.
 List<MetadataFilter> getFilters()
          Gets the list of MetadataFilters that make up this chain.
 void setFilters(List<MetadataFilter> newFilters)
          Sets the list of MetadataFilters that make up this chain.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private org.slf4j.Logger log
Class logger.


filters

private List<MetadataFilter> filters
Registered filters.

Constructor Detail

MetadataFilterChain

public MetadataFilterChain()
Constructor.

Method Detail

doFilter

public final void doFilter(XMLObject xmlObject)
                    throws FilterException
Filters the given metadata, perhaps to remove elements that are not wanted.

Specified by:
doFilter in interface MetadataFilter
Parameters:
xmlObject - the metadata to be filtered.
Throws:
FilterException - thrown if an error occurs during the filtering process

getFilters

public List<MetadataFilter> getFilters()
Gets the list of MetadataFilters that make up this chain.

Returns:
the filters that make up this chain

setFilters

public void setFilters(List<MetadataFilter> newFilters)
Sets the list of MetadataFilters that make up this chain.

Parameters:
newFilters - list of MetadataFilters that make up this chain


Copyright © 1999-2013. All Rights Reserved.