public static class HttpRouteRuleMatch.Builder extends Object
Modifier and Type | Method and Description |
---|---|
HttpRouteRuleMatch.Builder |
addAllHeaderMatches(List<HttpHeaderMatch> headerMatches)
Specifies a list of header match criteria, all of which must match corresponding headers in
the request.
|
HttpRouteRuleMatch.Builder |
addAllMetadataFilters(List<MetadataFilter> metadataFilters)
Opaque filter criteria used by Loadbalancer to restrict routing configuration to a limited
set xDS compliant clients.
|
HttpRouteRuleMatch.Builder |
addAllQueryParameterMatches(List<HttpQueryParameterMatch> queryParameterMatches)
Specifies a list of query parameter match criteria, all of which must match corresponding
query parameters in the request.
|
HttpRouteRuleMatch.Builder |
addHeaderMatches(HttpHeaderMatch headerMatches)
Specifies a list of header match criteria, all of which must match corresponding headers in
the request.
|
HttpRouteRuleMatch.Builder |
addMetadataFilters(MetadataFilter metadataFilters)
Opaque filter criteria used by Loadbalancer to restrict routing configuration to a limited
set xDS compliant clients.
|
HttpRouteRuleMatch.Builder |
addQueryParameterMatches(HttpQueryParameterMatch queryParameterMatches)
Specifies a list of query parameter match criteria, all of which must match corresponding
query parameters in the request.
|
HttpRouteRuleMatch |
build() |
HttpRouteRuleMatch.Builder |
clone() |
String |
getFullPathMatch()
For satifying the matchRule condition, the path of the request must exactly match the value
specified in fullPathMatch after removing any query parameters and anchor that may be part of
the original URL.
|
List<HttpHeaderMatch> |
getHeaderMatchesList()
Specifies a list of header match criteria, all of which must match corresponding headers in
the request.
|
Boolean |
getIgnoreCase()
Specifies that prefixMatch and fullPathMatch matches are case sensitive.
|
List<MetadataFilter> |
getMetadataFiltersList()
Opaque filter criteria used by Loadbalancer to restrict routing configuration to a limited
set xDS compliant clients.
|
String |
getPrefixMatch()
For satifying the matchRule condition, the request's path must begin with the specified
prefixMatch.
|
List<HttpQueryParameterMatch> |
getQueryParameterMatchesList()
Specifies a list of query parameter match criteria, all of which must match corresponding
query parameters in the request.
|
String |
getRegexMatch()
For satifying the matchRule condition, the path of the request must satisfy the regular
expression specified in regexMatch after removing any query parameters and anchor supplied
with the original URL.
|
HttpRouteRuleMatch.Builder |
mergeFrom(HttpRouteRuleMatch other) |
HttpRouteRuleMatch.Builder |
setFullPathMatch(String fullPathMatch)
For satifying the matchRule condition, the path of the request must exactly match the value
specified in fullPathMatch after removing any query parameters and anchor that may be part of
the original URL.
|
HttpRouteRuleMatch.Builder |
setIgnoreCase(Boolean ignoreCase)
Specifies that prefixMatch and fullPathMatch matches are case sensitive.
|
HttpRouteRuleMatch.Builder |
setPrefixMatch(String prefixMatch)
For satifying the matchRule condition, the request's path must begin with the specified
prefixMatch.
|
HttpRouteRuleMatch.Builder |
setRegexMatch(String regexMatch)
For satifying the matchRule condition, the path of the request must satisfy the regular
expression specified in regexMatch after removing any query parameters and anchor supplied
with the original URL.
|
public HttpRouteRuleMatch.Builder mergeFrom(HttpRouteRuleMatch other)
public String getFullPathMatch()
public HttpRouteRuleMatch.Builder setFullPathMatch(String fullPathMatch)
public List<HttpHeaderMatch> getHeaderMatchesList()
public HttpRouteRuleMatch.Builder addAllHeaderMatches(List<HttpHeaderMatch> headerMatches)
public HttpRouteRuleMatch.Builder addHeaderMatches(HttpHeaderMatch headerMatches)
public Boolean getIgnoreCase()
public HttpRouteRuleMatch.Builder setIgnoreCase(Boolean ignoreCase)
public List<MetadataFilter> getMetadataFiltersList()
public HttpRouteRuleMatch.Builder addAllMetadataFilters(List<MetadataFilter> metadataFilters)
public HttpRouteRuleMatch.Builder addMetadataFilters(MetadataFilter metadataFilters)
public String getPrefixMatch()
public HttpRouteRuleMatch.Builder setPrefixMatch(String prefixMatch)
public List<HttpQueryParameterMatch> getQueryParameterMatchesList()
public HttpRouteRuleMatch.Builder addAllQueryParameterMatches(List<HttpQueryParameterMatch> queryParameterMatches)
public HttpRouteRuleMatch.Builder addQueryParameterMatches(HttpQueryParameterMatch queryParameterMatches)
public String getRegexMatch()
public HttpRouteRuleMatch.Builder setRegexMatch(String regexMatch)
public HttpRouteRuleMatch build()
public HttpRouteRuleMatch.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.