Enum ContentType
- All Implemented Interfaces:
Serializable
,Comparable<ContentType>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:44.336Z")
@Stability(Deprecated)
@Deprecated
public enum ContentType
extends Enum<ContentType>
Deprecated.
(deprecated) The content type for a fixed response.
Example:
ApplicationListener listener; listener.addAction("Fixed", AddApplicationActionProps.builder() .priority(10) .conditions(List.of(ListenerCondition.pathPatterns(List.of("/ok")))) .action(ListenerAction.fixedResponse(200, FixedResponseOptions.builder() .contentType(ContentType.TEXT_PLAIN) .messageBody("OK") .build())) .build());
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDeprecated.Deprecated.Deprecated.Deprecated.Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic ContentType
Deprecated.Returns the enum constant of this type with the specified name.static ContentType[]
values()
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TEXT_PLAIN
Deprecated. -
TEXT_CSS
Deprecated. -
TEXT_HTML
Deprecated. -
APPLICATION_JAVASCRIPT
Deprecated. -
APPLICATION_JSON
Deprecated.
-
-
Method Details
-
values
Deprecated.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
Deprecated.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
-
FixedResponseOptions
.