Package com.realobjects.pdfreactor
Class Configuration.UrlRewriteRule
java.lang.Object
com.realobjects.pdfreactor.Configuration.UrlRewriteRule
- Enclosing class:
Configuration
A type containing various options for debugging.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsetPattern
(String pattern) The regular expression pattern which is matched against each URL.setSubstitution
(String substitution) If a URL matches thesetPattern(String)
, it is replaced by this substitution.
-
Constructor Details
-
UrlRewriteRule
public UrlRewriteRule()
-
-
Method Details
-
setPattern
The regular expression pattern which is matched against each URL.
Note that the URLs are always absolute. If they are initially relative in the document or other resources, they are resolved.
- Returns:
- The current
Configuration.UrlRewriteRule
instance.
-
setSubstitution
If a URL matches the
setPattern(String)
, it is replaced by this substitution. Since the pattern is a regular expression, the substitution can include group identifiers or back references.- Returns:
- The current
Configuration.UrlRewriteRule
instance.
-