public class DefaultLinkRelationProvider extends Object implements LinkRelationProvider, org.springframework.core.Ordered
LinkRelationProvider to simply use the uncapitalized version of the given type's
name as item resource LinkRelation as well as an appended List for the collection resource
LinkRelation.| Constructor and Description |
|---|
DefaultLinkRelationProvider() |
| Modifier and Type | Method and Description |
|---|---|
LinkRelation |
getCollectionResourceRelFor(Class<?> type)
Returns the relation type to be used to point to a collection resource of the given type.
|
LinkRelation |
getItemResourceRelFor(Class<?> type)
Returns the relation type to be used to point to an item resource of the given type.
|
int |
getOrder() |
boolean |
supports(Class<?> delimiter) |
public LinkRelation getCollectionResourceRelFor(Class<?> type)
LinkRelationProvidergetCollectionResourceRelFor in interface LinkRelationProvidertype - must not be null.public LinkRelation getItemResourceRelFor(Class<?> type)
LinkRelationProvidergetItemResourceRelFor in interface LinkRelationProvidertype - must not be null.public int getOrder()
getOrder in interface org.springframework.core.OrderedCopyright © 2012-2019–2019 Pivotal, Inc.. All rights reserved.