Class EvoInflectorLinkRelationProvider
java.lang.Object
org.springframework.hateoas.server.core.DefaultLinkRelationProvider
org.springframework.hateoas.server.core.EvoInflectorLinkRelationProvider
- All Implemented Interfaces:
Ordered,LinkRelationProvider,org.springframework.plugin.core.Plugin<LinkRelationProvider.LookupContext>
LinkRelationProvider implementation using the Evo Inflector implementation of an algorithmic approach to
English plurals.- Author:
- Oliver Gierke
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.hateoas.server.LinkRelationProvider
LinkRelationProvider.LookupContext -
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCollectionResourceRelFor(Class<?> type) Returns the relation type to be used to point to a collection resource of the given type.Methods inherited from class org.springframework.hateoas.server.core.DefaultLinkRelationProvider
getItemResourceRelFor, getOrder, supports
-
Constructor Details
-
EvoInflectorLinkRelationProvider
public EvoInflectorLinkRelationProvider()
-
-
Method Details
-
getCollectionResourceRelFor
Description copied from interface:LinkRelationProviderReturns the relation type to be used to point to a collection resource of the given type.- Specified by:
getCollectionResourceRelForin interfaceLinkRelationProvider- Overrides:
getCollectionResourceRelForin classDefaultLinkRelationProvider- Parameters:
type- must not be null.- Returns:
-