public class ProfileResourceProcessor extends Object implements org.springframework.hateoas.ResourceProcessor<RepositoryLinksResource>
ResourceProcessor
to add a profile
link to the root resource to point to multiple forms of metadata.Constructor and Description |
---|
ProfileResourceProcessor(RepositoryRestConfiguration configuration)
Creates a new
ProfileResourceProcessor with the given RepositoryRestConfiguration . |
Modifier and Type | Method and Description |
---|---|
RepositoryLinksResource |
process(RepositoryLinksResource resource)
Add a link to the
ProfileController 's base URI to the app's root URI. |
@Autowired public ProfileResourceProcessor(RepositoryRestConfiguration configuration)
ProfileResourceProcessor
with the given RepositoryRestConfiguration
.configuration
- must not be null.public RepositoryLinksResource process(RepositoryLinksResource resource)
ProfileController
's base URI to the app's root URI.process
in interface org.springframework.hateoas.ResourceProcessor<RepositoryLinksResource>
resource
- Copyright © 2011-2015–2015 Pivotal Software, Inc.. All rights reserved.