Class HTTPRouteMatch
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.gatewayapi.v1.HTTPRouteMatch
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<HTTPRouteMatchBuilder>
,io.fabric8.kubernetes.api.model.KubernetesResource
,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class HTTPRouteMatch extends Object implements io.fabric8.kubernetes.api.builder.Editable<HTTPRouteMatchBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
HTTPRouteMatch defines the predicate used to match requests to a given action. Multiple match types are ANDed together, i.e. the match will evaluate to true only if all conditions are satisfied.For example, the match below will match a HTTP request only if its path starts with `/foo` AND it contains the `version: v1` header:
``` match:
path:
value: "/foo"
headers:
- name: "version"
value "v1"
```
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HTTPRouteMatch()
No args constructor for use in serializationHTTPRouteMatch(List<HTTPHeaderMatch> headers, String method, HTTPPathMatch path, List<HTTPQueryParamMatch> queryParams)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HTTPRouteMatchBuilder
edit()
Map<String,Object>
getAdditionalProperties()
List<HTTPHeaderMatch>
getHeaders()
Headers specifies HTTP request header matchers.String
getMethod()
Method specifies HTTP method matcher.HTTPPathMatch
getPath()
HTTPRouteMatch defines the predicate used to match requests to a given action.List<HTTPQueryParamMatch>
getQueryParams()
QueryParams specifies HTTP query parameter matchers.void
setAdditionalProperties(Map<String,Object> additionalProperties)
void
setAdditionalProperty(String name, Object value)
void
setHeaders(List<HTTPHeaderMatch> headers)
Headers specifies HTTP request header matchers.void
setMethod(String method)
Method specifies HTTP method matcher.void
setPath(HTTPPathMatch path)
HTTPRouteMatch defines the predicate used to match requests to a given action.void
setQueryParams(List<HTTPQueryParamMatch> queryParams)
QueryParams specifies HTTP query parameter matchers.HTTPRouteMatchBuilder
toBuilder()
-
-
-
Constructor Detail
-
HTTPRouteMatch
public HTTPRouteMatch()
No args constructor for use in serialization
-
HTTPRouteMatch
public HTTPRouteMatch(List<HTTPHeaderMatch> headers, String method, HTTPPathMatch path, List<HTTPQueryParamMatch> queryParams)
-
-
Method Detail
-
getHeaders
public List<HTTPHeaderMatch> getHeaders()
Headers specifies HTTP request header matchers. Multiple match values are ANDed together, meaning, a request must match all the specified headers to select the route.
-
setHeaders
public void setHeaders(List<HTTPHeaderMatch> headers)
Headers specifies HTTP request header matchers. Multiple match values are ANDed together, meaning, a request must match all the specified headers to select the route.
-
getMethod
public String getMethod()
Method specifies HTTP method matcher. When specified, this route will be matched only if the request has the specified method.Support: Extended
-
setMethod
public void setMethod(String method)
Method specifies HTTP method matcher. When specified, this route will be matched only if the request has the specified method.Support: Extended
-
getPath
public HTTPPathMatch getPath()
HTTPRouteMatch defines the predicate used to match requests to a given action. Multiple match types are ANDed together, i.e. the match will evaluate to true only if all conditions are satisfied.For example, the match below will match a HTTP request only if its path starts with `/foo` AND it contains the `version: v1` header:
``` match:
path:
value: "/foo"
headers:
- name: "version"
value "v1"
```
-
setPath
public void setPath(HTTPPathMatch path)
HTTPRouteMatch defines the predicate used to match requests to a given action. Multiple match types are ANDed together, i.e. the match will evaluate to true only if all conditions are satisfied.For example, the match below will match a HTTP request only if its path starts with `/foo` AND it contains the `version: v1` header:
``` match:
path:
value: "/foo"
headers:
- name: "version"
value "v1"
```
-
getQueryParams
public List<HTTPQueryParamMatch> getQueryParams()
QueryParams specifies HTTP query parameter matchers. Multiple match values are ANDed together, meaning, a request must match all the specified query parameters to select the route.Support: Extended
-
setQueryParams
public void setQueryParams(List<HTTPQueryParamMatch> queryParams)
QueryParams specifies HTTP query parameter matchers. Multiple match values are ANDed together, meaning, a request must match all the specified query parameters to select the route.Support: Extended
-
edit
public HTTPRouteMatchBuilder edit()
- Specified by:
edit
in interfaceio.fabric8.kubernetes.api.builder.Editable<HTTPRouteMatchBuilder>
-
toBuilder
public HTTPRouteMatchBuilder toBuilder()
-
-