Class FilterParameters

java.lang.Object
org.apache.camel.support.jsse.JsseParameters
org.apache.camel.support.jsse.FilterParameters
All Implemented Interfaces:
CamelContextAware, HasCamelContext

public class FilterParameters extends JsseParameters
Represents a set of regular expression based filter patterns for including and excluding content of some type.
  • Field Details

  • Constructor Details

    • FilterParameters

      public FilterParameters()
  • Method Details

    • 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