Module spring.data.rest.webmvc
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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProfileResourceProcessor(org.springframework.data.rest.core.config.RepositoryRestConfiguration configuration) Creates a newProfileResourceProcessorwith 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
public ProfileResourceProcessor(org.springframework.data.rest.core.config.RepositoryRestConfiguration configuration) Creates a newProfileResourceProcessorwith 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:
processin interfaceRepresentationModelProcessor<RepositoryLinksResource>- Parameters:
resource-- Returns:
-