public class HalFormsConfiguration extends Object
HalConfiguration
.Constructor and Description |
---|
HalFormsConfiguration()
Creates a new
HalFormsConfiguration backed by a default HalConfiguration . |
HalFormsConfiguration(HalConfiguration halConfiguration)
Creates a new
HalFormsConfiguration for the given HalConfiguration . |
Modifier and Type | Method and Description |
---|---|
HalFormsConfiguration |
customize(com.fasterxml.jackson.databind.ObjectMapper mapper)
Customizes the given
ObjectMapper with the registered callback. |
HalConfiguration |
getHalConfiguration() |
HalFormsConfiguration |
registerPattern(Class<?> type,
String pattern)
Deprecated.
prefer
withPattern(Class, String) that returns a fresh instance, to be removed with 1.3. |
HalFormsConfiguration |
withObjectMapperCustomizer(Consumer<com.fasterxml.jackson.databind.ObjectMapper> objectMapperCustomizer)
Register the given
Consumer to apply additional customizations on the ObjectMapper used to render
HAL documents. |
HalFormsConfiguration |
withPattern(Class<?> type,
String pattern)
Deprecated.
|
public HalFormsConfiguration()
HalFormsConfiguration
backed by a default HalConfiguration
.public HalFormsConfiguration(HalConfiguration halConfiguration)
HalFormsConfiguration
for the given HalConfiguration
.halConfiguration
- must not be null.@Deprecated public HalFormsConfiguration registerPattern(Class<?> type, String pattern)
withPattern(Class, String)
that returns a fresh instance, to be removed with 1.3.type
- must not be null.pattern
- must not be null or empty.@Deprecated public HalFormsConfiguration withPattern(Class<?> type, String pattern)
type
- must not be null.pattern
- must not be null or empty.public HalFormsConfiguration withObjectMapperCustomizer(Consumer<com.fasterxml.jackson.databind.ObjectMapper> objectMapperCustomizer)
Consumer
to apply additional customizations on the ObjectMapper
used to render
HAL documents.objectMapperCustomizer
- must not be null.public HalFormsConfiguration customize(com.fasterxml.jackson.databind.ObjectMapper mapper)
ObjectMapper
with the registered callback.mapper
- must not be null.withObjectMapperCustomizer(Consumer)
public HalConfiguration getHalConfiguration()
Copyright © 2011–2021 VMware, Inc.. All rights reserved.