Class 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
    • 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

      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)