Interface OptingRequestRewriter

All Superinterfaces:
RequestRewriter

public interface OptingRequestRewriter extends 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 Details

    • accepts

      boolean accepts(String elementName, Attributes attributes, LinkCheckerSettings settings)
      Returns true if this rewriter can rewrite attributes or links in the given element
      Parameters:
      elementName - the element name
      attributes - the attributes of the element
      settings - The settings
      Returns:
      true if link/attributes can be rewritten by this instance