public class DefaultRelProvider extends Object implements RelProvider
RelProvider
to simply use the uncapitalized version of the given type's name as
single resource rel as well as an appended List
for the collection resource rel.Constructor and Description |
---|
DefaultRelProvider() |
Modifier and Type | Method and Description |
---|---|
String |
getCollectionResourceRelFor(Class<?> type)
Returns the relation type to be used to point to a collection resource of the given type.
|
String |
getItemResourceRelFor(Class<?> type)
Returns the relation type to be used to point to an item resource of the given type.
|
boolean |
supports(Class<?> delimiter) |
public boolean supports(Class<?> delimiter)
supports
in interface org.springframework.plugin.core.Plugin<Class<?>>
public String getCollectionResourceRelFor(Class<?> type)
RelProvider
getCollectionResourceRelFor
in interface RelProvider
type
- must not be null.public String getItemResourceRelFor(Class<?> type)
RelProvider
getItemResourceRelFor
in interface RelProvider
type
- must not be null.Copyright © 2012-2015–2015 Pivotal, Inc.. All rights reserved.