org.apache.camel.util.jsse
Class FilterParameters

java.lang.Object
  extended by org.apache.camel.util.jsse.JsseParameters
      extended by org.apache.camel.util.jsse.FilterParameters
All Implemented Interfaces:
CamelContextAware

public class FilterParameters
extends JsseParameters

Represents a set of regular expression based filter patterns for including and excluding content of some type.


Nested Class Summary
static class FilterParameters.Patterns
          An immutable collection of compiled includes and excludes filter Patterns.
 
Field Summary
protected  List<String> exclude
           
protected  List<String> include
           
 
Constructor Summary
FilterParameters()
           
 
Method Summary
 List<String> getExclude()
          Returns a live copy of the list of patterns to exclude.
 List<Pattern> getExcludePatterns()
          Returns a list of compiled Patterns based on the values of the exclude list.
 List<String> getInclude()
          Returns a live copy of the list of patterns to include.
 List<Pattern> getIncludePatterns()
          Returns a list of compiled Patterns based on the values of the include list.
protected  List<Pattern> getPattern(List<String> patternStrings)
          Compiles Patterns for each expression in patternStrings.
 FilterParameters.Patterns getPatterns()
          Returns an immutable collection of compiled filter patterns based on the state of this instance at the time of invocation.
 String toString()
           
 
Methods inherited from class org.apache.camel.util.jsse.JsseParameters
getCamelContext, parsePropertyValue, parsePropertyValues, resolveResource, setCamelContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

include

protected List<String> include

exclude

protected List<String> exclude
Constructor Detail

FilterParameters

public FilterParameters()
Method Detail

getInclude

public List<String> getInclude()
Returns a live copy of the list of patterns to include. The list of excludes takes precedence over the include patterns.

Returns:
the list of patterns to include

getExclude

public List<String> getExclude()
Returns a live copy of the list of patterns to exclude. This list takes precedence over the include patterns.

Returns:
the list of patterns to exclude

getIncludePatterns

public List<Pattern> getIncludePatterns()
Returns a list of compiled Patterns based on the values of the include list.

Returns:
the list of compiled expressions, never null
Throws:
PatternSyntaxException - if any of the expressions are invalid

getExcludePatterns

public List<Pattern> getExcludePatterns()
Returns a list of compiled Patterns based on the values of the exclude list.

Returns:
the list of compiled expressions, never null
Throws:
PatternSyntaxException - if any of the expressions are invalid

getPatterns

public FilterParameters.Patterns getPatterns()
Returns an immutable collection of compiled filter patterns based on the state of this instance at the time of invocation.


getPattern

protected List<Pattern> getPattern(List<String> patternStrings)
Compiles Patterns for each expression in patternStrings.

Parameters:
patternStrings - the list of regular expressions to compile
Returns:
the list of compiled patterns
Throws:
PatternSyntaxException - if any of the expressions are invalid

toString

public String toString()
Overrides:
toString in class Object


Apache CAMEL