Package org.springdoc.core.providers
Class HateoasHalProvider
java.lang.Object
org.springdoc.core.providers.HateoasHalProvider
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
DataRestHalProvider
public class HateoasHalProvider
extends Object
implements org.springframework.beans.factory.InitializingBean
The type Hateoas hal provider.
- Author:
- bnasslahsen
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ObjectMapperProviderThe Object mapper provider. -
Constructor Summary
ConstructorsConstructorDescriptionHateoasHalProvider(Optional<org.springframework.boot.hateoas.autoconfigure.HateoasProperties> hateoasPropertiesOptional, ObjectMapperProvider objectMapperProvider) Instantiates a new Hateoas hal provider. -
Method Summary
Modifier and TypeMethodDescriptionvoidAfter Properties Set.booleanIs hal enabled boolean.
-
Field Details
-
objectMapperProvider
The Object mapper provider.
-
-
Constructor Details
-
HateoasHalProvider
public HateoasHalProvider(Optional<org.springframework.boot.hateoas.autoconfigure.HateoasProperties> hateoasPropertiesOptional, ObjectMapperProvider objectMapperProvider) Instantiates a new Hateoas hal provider.- Parameters:
hateoasPropertiesOptional- the hateoas properties optionalobjectMapperProvider- the object mapper provider
-
-
Method Details
-
isHalEnabled
public boolean isHalEnabled()Is hal enabled boolean.- Returns:
- the boolean
-
afterPropertiesSet
public void afterPropertiesSet()After Properties Set.- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-