Interface RestLinksProvider

  • All Known Implementing Classes:
    RestLinksProviderImpl

    public interface RestLinksProvider
    An injectable bean that contains methods to get the web links at class and instance levels.
    • Method Detail

      • getTypeLinks

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

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