Class LinkExtractors


  • @ProviderType
    public final class LinkExtractors
    extends Object
    Common link extractors.
    • 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 the delegated LinkExtractor where the URI starts with the given prefix.
        Parameters:
        prefix - URI prefix
        delegate - Delegated link extractor
        Returns:
        Link extractor for prefixed URIs