Class RestLinksProviderImpl

    • Constructor Detail

      • RestLinksProviderImpl

        RestLinksProviderImpl​(jakarta.ws.rs.core.UriInfo uriInfo)
    • Method Detail

      • setLinksContainer

        static void setLinksContainer​(LinksContainer context)
      • setGetterAccessorsContainer

        static void setGetterAccessorsContainer​(GetterAccessorsContainer getterAccessorsContainer)
      • getTypeLinks

        public Collection<jakarta.ws.rs.core.Link> getTypeLinks​(Class<?> elementType)
        Specified by:
        getTypeLinks in interface RestLinksProvider
        Parameters:
        elementType - The resource type.
        Returns:
        the web links associated with the element type.
      • getInstanceLinks

        public <T> Collection<jakarta.ws.rs.core.Link> getInstanceLinks​(T instance)
        Specified by:
        getInstanceLinks in interface RestLinksProvider
        Type Parameters:
        T - the resource generic type.
        Parameters:
        instance - the resource instance.
        Returns:
        the web links associated with the instance.