Class ContentInternalLinks
java.lang.Object
io.wcm.siteapi.integrationtestsupport.linkextractor.ContentInternalLinks
- All Implemented Interfaces:
LinkExtractor
Generic extractor that is able to detect any "internal" links produced by
wcm.io Link Handler.
It used very basic heuristic and looks for any JSON elements with a properties "url" property, and a "type=internal" property.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ContentInternalLinks
public ContentInternalLinks()
-
-
Method Details
-
accept
Description copied from interface:LinkExtractor
Returns true if the link extractor accepts the given suffix (processor mapped to this suffix).- Specified by:
accept
in interfaceLinkExtractor
- Parameters:
suffix
- Suffix- Returns:
- true if JSON response of this processor is supported
-
getLinks
Description copied from interface:LinkExtractor
Retrieves links from the JSON document via JSON path.- Specified by:
getLinks
in interfaceLinkExtractor
- Parameters:
jsonPathContext
- Document context- Returns:
- Link URLs
-