Package org.springdoc.core.providers
Class DataRestHalProvider
java.lang.Object
org.springdoc.core.providers.HateoasHalProvider
org.springdoc.core.providers.DataRestHalProvider
The type Data rest hal provider.
- Author:
- bnasslahsen
-
Field Summary
Fields inherited from class org.springdoc.core.providers.HateoasHalProvider
objectMapperProvider
-
Constructor Summary
ConstructorsConstructorDescriptionDataRestHalProvider
(Optional<org.springframework.data.rest.core.config.RepositoryRestConfiguration> repositoryRestConfigurationOptional, Optional<org.springframework.boot.autoconfigure.hateoas.HateoasProperties> hateoasPropertiesOptional, 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, 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
@PostConstruct protected void init()Description copied from class:HateoasHalProvider
Init.- Overrides:
init
in classHateoasHalProvider
-
isHalEnabled
public boolean isHalEnabled()Description copied from class:HateoasHalProvider
Is hal enabled boolean.- Overrides:
isHalEnabled
in classHateoasHalProvider
- Returns:
- the boolean
-