public class RepositoryRelProvider extends Object implements org.springframework.hateoas.RelProvider
RelProvider
based on the ResourceMappings
for the registered repositories.Constructor and Description |
---|
RepositoryRelProvider(ObjectFactory<ResourceMappings> mappings)
Creates a new
RepositoryRelProvider for the given ResourceMappings . |
Modifier and Type | Method and Description |
---|---|
String |
getCollectionResourceRelFor(Class<?> type) |
String |
getItemResourceRelFor(Class<?> type) |
boolean |
supports(Class<?> delimiter) |
public RepositoryRelProvider(ObjectFactory<ResourceMappings> mappings)
RepositoryRelProvider
for the given ResourceMappings
.mappings
- must not be null.public String getCollectionResourceRelFor(Class<?> type)
getCollectionResourceRelFor
in interface org.springframework.hateoas.RelProvider
public String getItemResourceRelFor(Class<?> type)
getItemResourceRelFor
in interface org.springframework.hateoas.RelProvider
Copyright © 2011-2015–2015 Pivotal Software, Inc.. All rights reserved.