org.opensaml.util.resource
Class ChainingResourceFilter
java.lang.Object
org.opensaml.util.resource.ChainingResourceFilter
- All Implemented Interfaces:
- ResourceFilter
public class ChainingResourceFilter
- extends Object
- implements ResourceFilter
Resource filter that executes a list of resource filters in order.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChainingResourceFilter
public ChainingResourceFilter(List<ResourceFilter> filters)
- Constructor.
- Parameters:
filters
- resource filters to execute in order
applyFilter
public InputStream applyFilter(InputStream resource)
throws ResourceException
- Applies this filter to the given stream.
- Specified by:
applyFilter
in interface ResourceFilter
- Parameters:
resource
- Resource to which the filter should apply.
- Returns:
- filtered stream
- Throws:
ResourceException
- thrown is there if a problem applying the filter
Copyright © 2006-2013 Internet2. All Rights Reserved.