@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)",
date="2023-03-22T19:35:48.607Z")
public interface HttpGatewayRouteMatch
Example:
VirtualGateway gateway; VirtualService virtualService; gateway.addGatewayRoute("gateway-route-http-2", GatewayRouteBaseProps.builder() .routeSpec(GatewayRouteSpec.http(HttpGatewayRouteSpecOptions.builder() .routeTarget(virtualService) .match(HttpGatewayRouteMatch.builder() // This rewrites the path from '/test' to '/rewrittenPath'. .path(HttpGatewayRoutePathMatch.exactly("/test", "/rewrittenPath")) .build()) .build())) .build());
Modifier and Type | Interface and Description |
---|---|
static class |
HttpGatewayRouteMatch.Builder
A builder for
HttpGatewayRouteMatch |
static class |
HttpGatewayRouteMatch.Jsii$Proxy
An implementation for
HttpGatewayRouteMatch |
Modifier and Type | Method and Description |
---|---|
static HttpGatewayRouteMatch.Builder |
builder() |
default java.util.List<HeaderMatch> |
getHeaders()
Specifies the client request headers to match on.
|
default GatewayRouteHostnameMatch |
getHostname()
The gateway route host name to be matched on.
|
default HttpRouteMethod |
getMethod()
The method to match on.
|
default HttpGatewayRoutePathMatch |
getPath()
Specify how to match requests based on the 'path' part of their URL.
|
default java.util.List<QueryParameterMatch> |
getQueryParameters()
The query parameters to match on.
|
default java.lang.Boolean |
getRewriteRequestHostname()
When `true`, rewrites the original request received at the Virtual Gateway to the destination Virtual Service name.
|
default java.util.List<HeaderMatch> getHeaders()
All specified headers must match for the gateway route to match.
Default: - do not match on headers
default GatewayRouteHostnameMatch getHostname()
Default: - do not match on host name
default HttpRouteMethod getMethod()
Default: - do not match on method
default HttpGatewayRoutePathMatch getPath()
Default: - matches requests with any path
default java.util.List<QueryParameterMatch> getQueryParameters()
All specified query parameters must match for the route to match.
Default: - do not match on query parameters
default java.lang.Boolean getRewriteRequestHostname()
When false
, retains the original hostname from the request.
Default: true
static HttpGatewayRouteMatch.Builder builder()
HttpGatewayRouteMatch.Builder
of HttpGatewayRouteMatch