public class ControllerRelProvider extends Object implements RelProvider
Constructor and Description |
---|
ControllerRelProvider(Class<?> controller,
org.springframework.plugin.core.PluginRegistry<RelProvider,Class<?>> providers) |
Modifier and Type | Method and Description |
---|---|
String |
getCollectionResourceRelFor(Class<?> resource)
Returns the relation type to be used to point to a collection resource of the given type.
|
String |
getItemResourceRelFor(Class<?> resource)
Returns the relation type to be used to point to an item resource of the given type.
|
boolean |
supports(Class<?> delimiter) |
public ControllerRelProvider(Class<?> controller, org.springframework.plugin.core.PluginRegistry<RelProvider,Class<?>> providers)
public String getCollectionResourceRelFor(Class<?> resource)
RelProvider
getCollectionResourceRelFor
in interface RelProvider
resource
- must not be null.public String getItemResourceRelFor(Class<?> resource)
RelProvider
getItemResourceRelFor
in interface RelProvider
resource
- must not be null.Copyright © 2012-2016–2018 Pivotal, Inc.. All rights reserved.