Package com.day.cq.rewriter.pipeline
Interface OptingRequestRewriter
- All Superinterfaces:
RequestRewriter
The
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.-
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepts(String elementName, Attributes attributes, LinkCheckerSettings settings) Returns true if this rewriter can rewrite attributes or links in the given elementMethods inherited from interface com.day.cq.rewriter.pipeline.RequestRewriter
rewrite, rewriteLink
-
Method Details
-
accepts
Returns true if this rewriter can rewrite attributes or links in the given element- Parameters:
elementName- the element nameattributes- the attributes of the elementsettings- The settings- Returns:
- true if link/attributes can be rewritten by this instance
-