1 package org.jmage.filterchain; 2 3 import org.jmage.Configurable; 4 5 import java.net.URI; 6 import java.util.Properties; 7 8 /*** 9 * Create FilterChains 10 */ 11 public interface FilterChainFactory extends Configurable { 12 13 /*** 14 * Creates a FilterChain for a given name 15 * 16 * @param filterUri designating the filter 17 * @return the filter filterchain 18 * @throws FilterChainException 19 */ 20 public FilterChain createFrom(URI filterUri) throws FilterChainException; 21 22 /*** 23 * Creates a FilterChain for a given name and additional filter properties 24 * 25 * @param filterUri designating the filter 26 * @param filterProperties the additional filter properties 27 * @return the FilterChain 28 * @throws FilterChainException 29 */ 30 public FilterChain createFrom(URI filterUri, Properties filterProperties) throws FilterChainException; 31 }