Class SerdeTomlConfiguration
java.lang.Object
io.micronaut.serde.toml.support.SerdeTomlConfiguration
@Internal
@ConfigurationProperties("micronaut.serde.toml")
public final class SerdeTomlConfiguration
extends Object
TOML-specific configuration.
- Since:
- 3.0.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classTOML read constraints.static final classControls TOML serialization behavior.static enumTOML writer layout. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Integer@Nullable Integer@Nullable IntegervoidsetReadConstraints(SerdeTomlConfiguration.ReadConstraints readConstraints) voidsetWriteFeatures(SerdeTomlConfiguration.WriteFeatures writeFeatures)
-
Constructor Details
-
SerdeTomlConfiguration
public SerdeTomlConfiguration()
-
-
Method Details
-
getReadConstraints
- Returns:
- The TOML read constraints
-
setReadConstraints
- Parameters:
readConstraints- The TOML read constraints
-
getWriteFeatures
- Returns:
- The TOML write features
-
setWriteFeatures
- Parameters:
writeFeatures- The TOML write features
-
getWriteLayout
- Returns:
- The configured write layout
-
getMaxNumberLength
- Returns:
- The maximum number token length, or
nullto use the default
-
getMaxStringLength
- Returns:
- The maximum string value length, or
nullfor no limit
-
getMaxDocumentSize
- Returns:
- The maximum document size in bytes, or
null/non-positive for no limit
-