public interface OptingRequestRewriter extends RequestRewriter
OptingRequestRewriter
interface defines an optional service which is used to rewrite
attributes and links. It extends RequestRewriter
. Multiple implementations of this interface
may be provided. Highest ranked OptingRequestRewriter whose
accepts(String, Attributes, LinkCheckerSettings)
returns true will be used for rewriting unless
there is a RequestRewriter service available. If a RequestRewriter implementation is available,
OptingRequestRewriter will not be checked/used, the RequestRewriter will be used for rewriting.Modifier and Type | Method and Description |
---|---|
boolean |
accepts(java.lang.String elementName,
org.xml.sax.Attributes attributes,
LinkCheckerSettings settings)
Returns true if this rewriter can rewrite attributes or links in the given element
|
rewrite, rewriteLink
boolean accepts(java.lang.String elementName, org.xml.sax.Attributes attributes, LinkCheckerSettings settings)
elementName
- the element nameattributes
- the attributes of the elementsettings
- The settingsCopyright © 2010 - 2020 Adobe. All Rights Reserved