Interface RestLinksProvider
-
- All Known Implementing Classes:
RestLinksProviderImpl
public interface RestLinksProviderAn injectable bean that contains methods to get the web links at class and instance levels.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Collection<jakarta.ws.rs.core.Link>getInstanceLinks(T instance)Collection<jakarta.ws.rs.core.Link>getTypeLinks(Class<?> elementType)
-
-
-
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.
-
-