Interface HeaderMatchPattern.Builder

    • Method Detail

      • all

        HeaderMatchPattern.Builder all​(All all)

        Inspect all headers.

        Parameters:
        all - Inspect all headers.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • includedHeaders

        HeaderMatchPattern.Builder includedHeaders​(Collection<String> includedHeaders)

        Inspect only the headers that have a key that matches one of the strings specified here.

        Parameters:
        includedHeaders - Inspect only the headers that have a key that matches one of the strings specified here.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • includedHeaders

        HeaderMatchPattern.Builder includedHeaders​(String... includedHeaders)

        Inspect only the headers that have a key that matches one of the strings specified here.

        Parameters:
        includedHeaders - Inspect only the headers that have a key that matches one of the strings specified here.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • excludedHeaders

        HeaderMatchPattern.Builder excludedHeaders​(Collection<String> excludedHeaders)

        Inspect only the headers whose keys don't match any of the strings specified here.

        Parameters:
        excludedHeaders - Inspect only the headers whose keys don't match any of the strings specified here.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • excludedHeaders

        HeaderMatchPattern.Builder excludedHeaders​(String... excludedHeaders)

        Inspect only the headers whose keys don't match any of the strings specified here.

        Parameters:
        excludedHeaders - Inspect only the headers whose keys don't match any of the strings specified here.
        Returns:
        Returns a reference to this object so that method calls can be chained together.