Class PatternURLFilter
java.lang.Object
org.codehaus.mojo.jaxb2.shared.filters.AbstractFilter<URL>
org.codehaus.mojo.jaxb2.shared.filters.pattern.AbstractPatternFilter<URL>
org.codehaus.mojo.jaxb2.shared.filters.pattern.PatternURLFilter
AbstractPatternFilter matching the string of URLs with to a set of Regular expressions.
- Since:
- 2.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConverter
<URL> Converter returning each URL'stoString()
form, after normalizing it, using the algorithmtoConvert.toURI().normalize().toURL().toString();
Fields inherited from class org.codehaus.mojo.jaxb2.shared.filters.AbstractFilter
log, TOSTRING_INDENT
-
Constructor Summary
ConstructorsConstructorDescriptionPatternURLFilter
(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. -
Method Summary
Methods inherited from class org.codehaus.mojo.jaxb2.shared.filters.pattern.AbstractPatternFilter
convert, convert, onCandidate, onInitialize, setAcceptCandidateOnPatternMatch, setConverter, setPatternPrefix, setPatterns, toString
Methods inherited from class org.codehaus.mojo.jaxb2.shared.filters.AbstractFilter
accept, addDelayedLogMessage, initialize, isInitialized, onNullCandidate, setProcessNullValues, validateDiSetterCalledBeforeInitialization
-
Field Details
-
NORMALIZED_URL_CONVERTER
Converter returning each URL'stoString()
form, after normalizing it, using the algorithmtoConvert.toURI().normalize().toURL().toString();
-
-
Constructor Details
-
PatternURLFilter
Creates a new ExclusionRegularExpressionURLFilter using the supplied patternStrings which are matched against each full - normalized - URL. TheNORMALIZED_URL_CONVERTER
is used to convert URLs to strings.- Parameters:
patternStrings
- The list of patternStrings to be used as regular expression matchers against the normalized URLs.- See Also:
-