@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:06.605Z") @Stability(value=Deprecated) @Deprecated public enum ContentType extends 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(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.
|
@Stability(value=Deprecated) @Deprecated public static final ContentType TEXT_PLAIN
@Stability(value=Deprecated) @Deprecated public static final ContentType TEXT_CSS
@Stability(value=Deprecated) @Deprecated public static final ContentType TEXT_HTML
@Stability(value=Deprecated) @Deprecated public static final ContentType APPLICATION_JAVASCRIPT
@Stability(value=Deprecated) @Deprecated public static final ContentType APPLICATION_JSON
public static ContentType[] values()
for (ContentType c : ContentType.values()) System.out.println(c);
public static ContentType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.