Interface HttpMatch.Builder

    • Method Detail

      • headerMatches

        HttpMatch.Builder headerMatches​(Collection<HeaderMatch> headerMatches)

        The header matches. Matches incoming requests with rule based on request header value before applying rule action.

        Parameters:
        headerMatches - The header matches. Matches incoming requests with rule based on request header value before applying rule action.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • headerMatches

        HttpMatch.Builder headerMatches​(HeaderMatch... headerMatches)

        The header matches. Matches incoming requests with rule based on request header value before applying rule action.

        Parameters:
        headerMatches - The header matches. Matches incoming requests with rule based on request header value before applying rule action.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • headerMatches

        HttpMatch.Builder headerMatches​(Consumer<HeaderMatch.Builder>... headerMatches)

        The header matches. Matches incoming requests with rule based on request header value before applying rule action.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #headerMatches(List).

        Parameters:
        headerMatches - a consumer that will call methods on HeaderMatch.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #headerMatches(java.util.Collection)
      • method

        HttpMatch.Builder method​(String method)

        The HTTP method type.

        Parameters:
        method - The HTTP method type.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • pathMatch

        HttpMatch.Builder pathMatch​(PathMatch pathMatch)

        The path match.

        Parameters:
        pathMatch - The path match.
        Returns:
        Returns a reference to this object so that method calls can be chained together.