java.lang.Object
io.wcm.siteapi.integrationtestsupport.linkextractor.IndexLinks
All Implemented Interfaces:
LinkExtractor

public final class IndexLinks extends Object implements LinkExtractor
Extract links generated by the default output of Site API Index Processor.
  • Constructor Details

    • IndexLinks

      public IndexLinks()
  • Method Details

    • accept

      public boolean accept(String suffix)
      Description copied from interface: LinkExtractor
      Returns true if the link extractor accepts the given suffix (processor mapped to this suffix).
      Specified by:
      accept in interface LinkExtractor
      Parameters:
      suffix - Suffix
      Returns:
      true if JSON response of this processor is supported
    • getLinks

      public Stream<String> getLinks(com.jayway.jsonpath.DocumentContext jsonPathContext)
      Description copied from interface: LinkExtractor
      Retrieves links from the JSON document via JSON path.
      Specified by:
      getLinks in interface LinkExtractor
      Parameters:
      jsonPathContext - Document context
      Returns:
      Link URLs