@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:54:56.877Z") @Stability(value=Experimental) public enum PassthroughBehavior extends Enum<PassthroughBehavior>
| Enum Constant and Description |
|---|
NEVER
(experimental) Rejects unmapped content types with an HTTP 415 'Unsupported Media Type' response.
|
WHEN_NO_MATCH
(experimental) Passes the request body for unmapped content types through to the integration back end without transformation.
|
WHEN_NO_TEMPLATES
(experimental) Allows pass-through when the integration has NO content types mapped to templates.
|
| Modifier and Type | Method and Description |
|---|---|
static PassthroughBehavior |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PassthroughBehavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Experimental) public static final PassthroughBehavior WHEN_NO_MATCH
@Stability(value=Experimental) public static final PassthroughBehavior NEVER
@Stability(value=Experimental) public static final PassthroughBehavior WHEN_NO_TEMPLATES
However if there is at least one content type defined, unmapped content types will be rejected with the same 415 response.
public static PassthroughBehavior[] values()
for (PassthroughBehavior c : PassthroughBehavior.values()) System.out.println(c);
public static PassthroughBehavior 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 © 2021. All rights reserved.