Interface HttpRouteMatch.Builder

All Superinterfaces:
Buildable, CopyableBuilder<HttpRouteMatch.Builder,HttpRouteMatch>, SdkBuilder<HttpRouteMatch.Builder,HttpRouteMatch>, SdkPojo
Enclosing class:
HttpRouteMatch

public static interface HttpRouteMatch.Builder extends SdkPojo, CopyableBuilder<HttpRouteMatch.Builder,HttpRouteMatch>
  • Method Details

    • 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

      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

      The client request headers to match on.

      This is a convenience method that creates an instance of the HttpRouteHeader.Builder avoiding the need to create one manually via HttpRouteHeader.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to headers(List<HttpRouteHeader>).

      Parameters:
      headers - a consumer that will call methods on HttpRouteHeader.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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:
    • 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:
    • 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.
    • path

      The client request path to match on.

      This is a convenience method that creates an instance of the HttpPathMatch.Builder avoiding the need to create one manually via HttpPathMatch.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to path(HttpPathMatch).

      Parameters:
      path - a consumer that will call methods on HttpPathMatch.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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.
    • queryParameters

      HttpRouteMatch.Builder queryParameters(Consumer<HttpQueryParameter.Builder>... queryParameters)

      The client request query parameters to match on.

      This is a convenience method that creates an instance of the HttpQueryParameter.Builder avoiding the need to create one manually via HttpQueryParameter.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to queryParameters(List<HttpQueryParameter>).

      Parameters:
      queryParameters - a consumer that will call methods on HttpQueryParameter.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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:
    • 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: