Module rxmicro.rest.client
Package io.rxmicro.rest.client
Enum RestClientGeneratorConfig.RequestValidationMode
- java.lang.Object
-
- java.lang.Enum<RestClientGeneratorConfig.RequestValidationMode>
-
- io.rxmicro.rest.client.RestClientGeneratorConfig.RequestValidationMode
-
- All Implemented Interfaces:
Serializable,Comparable<RestClientGeneratorConfig.RequestValidationMode>
- Enclosing class:
- RestClientGeneratorConfig
public static enum RestClientGeneratorConfig.RequestValidationMode extends Enum<RestClientGeneratorConfig.RequestValidationMode>
Provides supported request validation modes for REST clients.- Since:
- 0.1
- Author:
- nedis
-
-
Enum Constant Summary
Enum Constants Enum Constant Description RETURN_ERROR_SIGNALerror handling should be performed in reactive style.THROW_EXCEPTIONit is necessary to catch the exception.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RestClientGeneratorConfig.RequestValidationModevalueOf(String name)Returns the enum constant of this type with the specified name.static RestClientGeneratorConfig.RequestValidationMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
THROW_EXCEPTION
public static final RestClientGeneratorConfig.RequestValidationMode THROW_EXCEPTION
it is necessary to catch the exception.
-
RETURN_ERROR_SIGNAL
public static final RestClientGeneratorConfig.RequestValidationMode RETURN_ERROR_SIGNAL
error handling should be performed in reactive style.
-
-
Method Detail
-
values
public static RestClientGeneratorConfig.RequestValidationMode[] 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 (RestClientGeneratorConfig.RequestValidationMode c : RestClientGeneratorConfig.RequestValidationMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RestClientGeneratorConfig.RequestValidationMode 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
-
-