public class ProfileResourceProcessor extends Object implements org.springframework.hateoas.server.RepresentationModelProcessor<RepositoryLinksResource>
ResourceProcessor
to add a profile
link to the root resource to point to multiple forms of metadata.Modifier and Type | Field and Description |
---|---|
static String |
PROFILE_REL |
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. |
public static final String PROFILE_REL
@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.server.RepresentationModelProcessor<RepositoryLinksResource>
resource
- Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.