Package com.day.cq.rewriter.pipeline
Interface OptingRequestRewriter
-
- All Superinterfaces:
RequestRewriter
public interface OptingRequestRewriter extends RequestRewriter
TheOptingRequestRewriter
interface defines an optional service which is used to rewrite attributes and links. It extendsRequestRewriter
. Multiple implementations of this interface may be provided. Highest ranked OptingRequestRewriter whoseaccepts(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
All Methods Instance Methods Abstract Methods Modifier and Type Method 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-
Methods inherited from interface com.day.cq.rewriter.pipeline.RequestRewriter
rewrite, rewriteLink
-
-
-
-
Method Detail
-
accepts
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- Parameters:
elementName
- the element nameattributes
- the attributes of the elementsettings
- The settings- Returns:
- true if link/attributes can be rewritten by this instance
-
-