Class ProfileResourceProcessor
java.lang.Object
org.springframework.data.rest.webmvc.ProfileResourceProcessor
- All Implemented Interfaces:
RepresentationModelProcessor<RepositoryLinksResource>
public class ProfileResourceProcessor
extends Object
implements RepresentationModelProcessor<RepositoryLinksResource>
RepresentationModelProcessor
to add a profile
link to the root resource to point to multiple forms of
metadata.- Since:
- 2.4
- Author:
- Oliver Gierke, Greg Turnquist
-
Field Summary
-
Constructor Summary
ConstructorDescriptionProfileResourceProcessor
(RepositoryRestConfiguration configuration) Creates a newProfileResourceProcessor
with the givenRepositoryRestConfiguration
. -
Method Summary
Modifier and TypeMethodDescriptionprocess
(RepositoryLinksResource resource) Add a link to theProfileController
's base URI to the app's root URI.
-
Field Details
-
PROFILE_REL
- See Also:
-
-
Constructor Details
-
ProfileResourceProcessor
Creates a newProfileResourceProcessor
with the givenRepositoryRestConfiguration
.- Parameters:
configuration
- must not be null.
-
-
Method Details
-
process
Add a link to theProfileController
's base URI to the app's root URI.- Specified by:
process
in interfaceRepresentationModelProcessor<RepositoryLinksResource>
- Parameters:
resource
-- Returns:
-