Module io.inverno.mod.web.compiler
Package io.inverno.mod.web.compiler.spi
Enum WebResponseBodyInfo.ResponseBodyKind
java.lang.Object
java.lang.Enum<WebResponseBodyInfo.ResponseBodyKind>
io.inverno.mod.web.compiler.spi.WebResponseBodyInfo.ResponseBodyKind
- All Implemented Interfaces:
Serializable,Comparable<WebResponseBodyInfo.ResponseBodyKind>,java.lang.constant.Constable
- Enclosing interface:
- WebResponseBodyInfo
public static enum WebResponseBodyInfo.ResponseBodyKind
extends Enum<WebResponseBodyInfo.ResponseBodyKind>
Indicates the kind of a response body.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCharSequenceis assignable from the actual response body type.The actual response body type isVoid.The actual response body type is none of the above.The actual response body type isByteBuf.The actual response body type isResource.CharSequenceis assignable from the actual response body type.The actual response body type isByteBuf. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static WebResponseBodyInfo.ResponseBodyKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
RAW
The actual response body type isByteBuf. -
CHARSEQUENCE
CharSequenceis assignable from the actual response body type. -
SSE_RAW
The actual response body type isByteBuf. -
SSE_CHARSEQUENCE
CharSequenceis assignable from the actual response body type. -
SSE_ENCODED
-
RESOURCE
The actual response body type isResource. -
EMPTY
The actual response body type isVoid. -
ENCODED
The actual response body type is none of the above.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-