- java.lang.Object
-
- java.lang.Enum<SerializationConfig.Action>
-
- io.helidon.common.SerializationConfig.Action
-
- All Implemented Interfaces:
Serializable
,Comparable<SerializationConfig.Action>
- Enclosing class:
- SerializationConfig
public static enum SerializationConfig.Action extends Enum<SerializationConfig.Action>
What action to take if there is no global filter configured, or if the configuration is not according to Helidon expectations.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONFIGURE
Attempt to configure the correct values.FAIL
Fail by throwing anIllegalStateException
.IGNORE
Ignore the problem and continue as if nothing happened.WARN
Warn in the log file.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SerializationConfig.Action
valueOf(String name)
Returns the enum constant of this type with the specified name.static SerializationConfig.Action[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FAIL
public static final SerializationConfig.Action FAIL
Fail by throwing anIllegalStateException
.
-
WARN
public static final SerializationConfig.Action WARN
Warn in the log file.
-
CONFIGURE
public static final SerializationConfig.Action CONFIGURE
Attempt to configure the correct values. Note that this may behave asFAIL
for cases where reconfiguration is not possible.
-
IGNORE
public static final SerializationConfig.Action IGNORE
Ignore the problem and continue as if nothing happened.
-
-
Method Detail
-
values
public static SerializationConfig.Action[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SerializationConfig.Action c : SerializationConfig.Action.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SerializationConfig.Action valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-