public class ControllerLinkRelationProvider extends Object implements LinkRelationProvider
Constructor and Description |
---|
ControllerLinkRelationProvider(Class<?> controller,
org.springframework.plugin.core.PluginRegistry<LinkRelationProvider,Class<?>> providers) |
Modifier and Type | Method and Description |
---|---|
LinkRelation |
getCollectionResourceRelFor(Class<?> resource)
Returns the relation type to be used to point to a collection resource of the given type.
|
LinkRelation |
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 ControllerLinkRelationProvider(Class<?> controller, org.springframework.plugin.core.PluginRegistry<LinkRelationProvider,Class<?>> providers)
public LinkRelation getItemResourceRelFor(Class<?> resource)
LinkRelationProvider
getItemResourceRelFor
in interface LinkRelationProvider
resource
- must not be null.public LinkRelation getCollectionResourceRelFor(Class<?> resource)
LinkRelationProvider
getCollectionResourceRelFor
in interface LinkRelationProvider
resource
- must not be null.Copyright © 2012-2019–2019 Pivotal, Inc.. All rights reserved.