public class PatternURLFilter extends AbstractPatternFilter<URL>
Modifier and Type | Field and Description |
---|---|
static StringConverter<URL> |
NORMALIZED_URL_CONVERTER
Converter returning each URL's
toString() form, after normalizing it, using the
algorithm toConvert.toURI().normalize().toURL().toString(); |
log, TOSTRING_INDENT
Constructor and Description |
---|
PatternURLFilter(boolean processNullValues,
String patternPrefix,
List<String> patterns,
StringConverter<URL> converter,
boolean acceptCandidateOnPatternMatch)
Compound constructor creating an ExclusionRegularExpressionURLFilter from the supplied parameters.
|
PatternURLFilter(List<String> patternStrings)
Creates a new ExclusionRegularExpressionURLFilter using the supplied patternStrings which are
matched against each full - normalized - URL.
|
convert, convert, onCandidate, onInitialize, setAcceptCandidateOnPatternMatch, setConverter, setPatternPrefix, setPatterns, toString
accept, addDelayedLogMessage, initialize, isInitialized, onNullCandidate, setProcessNullValues, validateDiSetterCalledBeforeInitialization
public static final StringConverter<URL> NORMALIZED_URL_CONVERTER
toString()
form, after normalizing it, using the
algorithm toConvert.toURI().normalize().toURL().toString();
public PatternURLFilter(List<String> patternStrings)
NORMALIZED_URL_CONVERTER
is used to convert
URLs to strings.patternStrings
- The list of patternStrings to be used as regular expression matchers against the
normalized URLs.NORMALIZED_URL_CONVERTER
,
AbstractPatternFilter.convert(java.util.List, String)
public PatternURLFilter(boolean processNullValues, String patternPrefix, List<String> patterns, StringConverter<URL> converter, boolean acceptCandidateOnPatternMatch)
processNullValues
- if true
, this ExclusionRegularExpressionURLFilter process null
candidate values.patternPrefix
- a prefix to be prepended to any patterns submitted to
this PatternURLFilter.patterns
- The non-null list of Patters which should be applied within this
ExclusionRegularExpressionURLFilter. A candidate of type T should only
be accepted by this ExclusionRegularExpressionURLFilter if all supplied
patterns matchAtLeastOnce the candidate.converter
- The StringConverter used to convert T-type objects to Strings which should
be matched by all supplied Patterns to T-object candidates.acceptCandidateOnPatternMatch
- if true
, this ExclusionRegularExpressionURLFilter will matchAtLeastOnce
candidate objects that match at least one of the supplied patterns. if
false
, this ExclusionRegularExpressionURLFilter will noFilterMatches
candidates that match at least one of the supplied patterns.Copyright © 2005–2017 MojoHaus. All rights reserved.