public static final class HttpGatewayRouteMatch.Builder
extends java.lang.Object
HttpGatewayRouteMatch
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
HttpGatewayRouteMatch |
build()
Builds the configured instance.
|
HttpGatewayRouteMatch.Builder |
headers(java.util.List<? extends HeaderMatch> headers)
Sets the value of
HttpGatewayRouteMatch.getHeaders() |
HttpGatewayRouteMatch.Builder |
hostname(GatewayRouteHostnameMatch hostname)
Sets the value of
HttpGatewayRouteMatch.getHostname() |
HttpGatewayRouteMatch.Builder |
method(HttpRouteMethod method)
Sets the value of
HttpGatewayRouteMatch.getMethod() |
HttpGatewayRouteMatch.Builder |
path(HttpGatewayRoutePathMatch path)
Sets the value of
HttpGatewayRouteMatch.getPath() |
HttpGatewayRouteMatch.Builder |
queryParameters(java.util.List<? extends QueryParameterMatch> queryParameters)
Sets the value of
HttpGatewayRouteMatch.getQueryParameters() |
HttpGatewayRouteMatch.Builder |
rewriteRequestHostname(java.lang.Boolean rewriteRequestHostname)
Sets the value of
HttpGatewayRouteMatch.getRewriteRequestHostname() |
public HttpGatewayRouteMatch.Builder headers(java.util.List<? extends HeaderMatch> headers)
HttpGatewayRouteMatch.getHeaders()
headers
- Specifies the client request headers to match on.
All specified headers
must match for the gateway route to match.this
public HttpGatewayRouteMatch.Builder hostname(GatewayRouteHostnameMatch hostname)
HttpGatewayRouteMatch.getHostname()
hostname
- The gateway route host name to be matched on.this
public HttpGatewayRouteMatch.Builder method(HttpRouteMethod method)
HttpGatewayRouteMatch.getMethod()
method
- The method to match on.this
public HttpGatewayRouteMatch.Builder path(HttpGatewayRoutePathMatch path)
HttpGatewayRouteMatch.getPath()
path
- Specify how to match requests based on the 'path' part of their URL.this
public HttpGatewayRouteMatch.Builder queryParameters(java.util.List<? extends QueryParameterMatch> queryParameters)
HttpGatewayRouteMatch.getQueryParameters()
queryParameters
- The query parameters to match on.
All specified query parameters must match for the route to match.this
public HttpGatewayRouteMatch.Builder rewriteRequestHostname(java.lang.Boolean rewriteRequestHostname)
HttpGatewayRouteMatch.getRewriteRequestHostname()
rewriteRequestHostname
- When `true`, rewrites the original request received at the Virtual Gateway to the destination Virtual Service name.
When false
, retains the original hostname from the request.this
public HttpGatewayRouteMatch build()
HttpGatewayRouteMatch
java.lang.NullPointerException
- if any required attribute was not provided