Package org.springdoc.data.rest
Class DataRestHalProvider
java.lang.Object
org.springdoc.hateoas.HateoasHalProvider
org.springdoc.data.rest.DataRestHalProvider
The type Data rest hal provider.
- Author:
- bnasslahsen
-
Field Summary
Fields inherited from class org.springdoc.hateoas.HateoasHalProvider
objectMapperProvider
-
Constructor Summary
ConstructorsConstructorDescriptionDataRestHalProvider
(Optional<org.springframework.data.rest.core.config.RepositoryRestConfiguration> repositoryRestConfigurationOptional, Optional<org.springframework.boot.autoconfigure.hateoas.HateoasProperties> hateoasPropertiesOptional, org.springdoc.core.providers.ObjectMapperProvider objectMapperProvider) Instantiates a new Data rest hal provider. -
Method Summary
-
Constructor Details
-
DataRestHalProvider
public DataRestHalProvider(Optional<org.springframework.data.rest.core.config.RepositoryRestConfiguration> repositoryRestConfigurationOptional, Optional<org.springframework.boot.autoconfigure.hateoas.HateoasProperties> hateoasPropertiesOptional, org.springdoc.core.providers.ObjectMapperProvider objectMapperProvider) Instantiates a new Data rest hal provider.- Parameters:
repositoryRestConfigurationOptional
- the repository rest configuration optionalhateoasPropertiesOptional
- the hateoas properties optionalobjectMapperProvider
- the object mapper provider
-
-
Method Details
-
init
- Overrides:
init
in classHateoasHalProvider
-
isHalEnabled
public boolean isHalEnabled()- Overrides:
isHalEnabled
in classHateoasHalProvider
-