Class LinkExtractors
- java.lang.Object
-
- io.wcm.caravan.pipeline.extensions.hal.crawler.LinkExtractors
-
@ProviderType public final class LinkExtractors extends Object
Common link extractors.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LinkExtractor
all()
Returns all relations and links in a HAL resource except CURI links.static LinkExtractor
filterByPrefix(String prefix, LinkExtractor delegate)
Returns all relations and links provided by thedelegate
dLinkExtractor
where the URI starts with the given prefix.static LinkExtractor
noUriTemplates()
Returns all relations and links in a HAL resource having no URI template expressions.
-
-
-
Method Detail
-
all
public static LinkExtractor all()
Returns all relations and links in a HAL resource except CURI links.- Returns:
- All links
-
noUriTemplates
public static LinkExtractor noUriTemplates()
Returns all relations and links in a HAL resource having no URI template expressions.- Returns:
- Filtered links
-
filterByPrefix
public static LinkExtractor filterByPrefix(String prefix, LinkExtractor delegate)
Returns all relations and links provided by thedelegate
dLinkExtractor
where the URI starts with the given prefix.- Parameters:
prefix
- URI prefixdelegate
- Delegated link extractor- Returns:
- Link extractor for prefixed URIs
-
-