@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.556Z") @Stability(value=Stable) public enum HttpRouteProtocol extends Enum<HttpRouteProtocol>
Example:
// Example automatically generated from non-compiling source. May contain errors.
VirtualRouter router;
VirtualNode node;
router.addRoute("route-http2", RouteBaseProps.builder()
.routeSpec(RouteSpec.http2(HttpRouteSpecOptions.builder()
.weightedTargets(List.of(WeightedTarget.builder()
.virtualNode(node)
.build()))
.match(HttpRouteMatch.builder()
.path(HttpRoutePathMatch.exactly("/exact"))
.method(HttpRouteMethod.POST)
.protocol(HttpRouteProtocol.HTTPS)
.headers(List.of(HeaderMatch.valueIs("Content-Type", "application/json"), HeaderMatch.valueIsNot("Content-Type", "application/json")))
.queryParameters(List.of(QueryParameterMatch.valueIs("query-field", "value")))
.build())
.build()))
.build());
| Enum Constant and Description |
|---|
HTTP
Match HTTP requests.
|
HTTPS
Match HTTPS requests.
|
| Modifier and Type | Method and Description |
|---|---|
static HttpRouteProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpRouteProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final HttpRouteProtocol HTTP
@Stability(value=Stable) public static final HttpRouteProtocol HTTPS
public static HttpRouteProtocol[] values()
for (HttpRouteProtocol c : HttpRouteProtocol.values()) System.out.println(c);
public static HttpRouteProtocol 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.