Package org.apache.camel.support.jsse
Class FilterParameters
- java.lang.Object
-
- org.apache.camel.support.jsse.JsseParameters
-
- org.apache.camel.support.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
Nested Classes Modifier and Type Class Description static class
FilterParameters.Patterns
An immutable collection of compiled includes and excludes filterPattern
s.
-
Constructor Summary
Constructors Constructor Description FilterParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getExclude()
Returns a live copy of the list of patterns to exclude.List<Pattern>
getExcludePatterns()
Returns a list of compiledPattern
s 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 compiledPattern
s based on the values of the include list.protected List<Pattern>
getPattern(List<String> patternStrings)
CompilesPattern
s for each expression inpatternStrings
.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.support.jsse.JsseParameters
getCamelContext, parsePropertyValue, parsePropertyValues, resolveResource, setCamelContext
-
-
-
-
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 compiledPattern
s 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 compiledPattern
s 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)
CompilesPattern
s for each expression inpatternStrings
.- Parameters:
patternStrings
- the list of regular expressions to compile- Returns:
- the list of compiled patterns
- Throws:
PatternSyntaxException
- if any of the expressions are invalid
-
-