Interface HttpRouteMatch.Builder

    • Method Detail

      • headers

        HttpRouteMatch.Builder headers​(Collection<HttpRouteHeader> headers)

        The client request headers to match on.

        Parameters:
        headers - The client request headers to match on.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • headers

        HttpRouteMatch.Builder headers​(HttpRouteHeader... headers)

        The client request headers to match on.

        Parameters:
        headers - The client request headers to match on.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • method

        HttpRouteMatch.Builder method​(String method)

        The client request method to match on. Specify only one.

        Parameters:
        method - The client request method to match on. Specify only one.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        HttpMethod, HttpMethod
      • method

        HttpRouteMatch.Builder method​(HttpMethod method)

        The client request method to match on. Specify only one.

        Parameters:
        method - The client request method to match on. Specify only one.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        HttpMethod, HttpMethod
      • path

        HttpRouteMatch.Builder path​(HttpPathMatch path)

        The client request path to match on.

        Parameters:
        path - The client request path to match on.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • port

        HttpRouteMatch.Builder port​(Integer port)

        The port number to match on.

        Parameters:
        port - The port number to match on.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • prefix

        HttpRouteMatch.Builder prefix​(String prefix)

        Specifies the path to match requests with. This parameter must always start with /, which by itself matches all requests to the virtual service name. You can also match for path-based routing of requests. For example, if your virtual service name is my-service.local and you want the route to match requests to my-service.local/metrics, your prefix should be /metrics.

        Parameters:
        prefix - Specifies the path to match requests with. This parameter must always start with /, which by itself matches all requests to the virtual service name. You can also match for path-based routing of requests. For example, if your virtual service name is my-service.local and you want the route to match requests to my-service.local/metrics, your prefix should be /metrics.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • queryParameters

        HttpRouteMatch.Builder queryParameters​(Collection<HttpQueryParameter> queryParameters)

        The client request query parameters to match on.

        Parameters:
        queryParameters - The client request query parameters to match on.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • queryParameters

        HttpRouteMatch.Builder queryParameters​(HttpQueryParameter... queryParameters)

        The client request query parameters to match on.

        Parameters:
        queryParameters - The client request query parameters to match on.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • scheme

        HttpRouteMatch.Builder scheme​(String scheme)

        The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes.

        Parameters:
        scheme - The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        HttpScheme, HttpScheme
      • scheme

        HttpRouteMatch.Builder scheme​(HttpScheme scheme)

        The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes.

        Parameters:
        scheme - The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        HttpScheme, HttpScheme