@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-09T19:16:41.559Z") @Deprecated public enum ContentType extends java.lang.Enum<ContentType>
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());
Enum Constant and Description |
---|
APPLICATION_JAVASCRIPT
Deprecated.
|
APPLICATION_JSON
Deprecated.
|
TEXT_CSS
Deprecated.
|
TEXT_HTML
Deprecated.
|
TEXT_PLAIN
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ContentType |
valueOf(java.lang.String name)
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.
|
@Deprecated public static final ContentType TEXT_PLAIN
@Deprecated public static final ContentType TEXT_CSS
@Deprecated public static final ContentType TEXT_HTML
@Deprecated public static final ContentType APPLICATION_JAVASCRIPT
@Deprecated public static final ContentType APPLICATION_JSON
public static ContentType[] values()
for (ContentType c : ContentType.values()) System.out.println(c);
public static ContentType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null