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 Summary
Modifier and TypeMethodDescription<T> Collection<jakarta.ws.rs.core.Link>getInstanceLinks(T instance) Collection<jakarta.ws.rs.core.Link>getTypeLinks(Class<?> elementType)
-
Method Details
-
getTypeLinks
- Parameters:
elementType- The resource type.- Returns:
- the web links associated with the element type.
-
getInstanceLinks
- Type Parameters:
T- the resource generic type.- Parameters:
instance- the resource instance.- Returns:
- the web links associated with the instance.
-