Interface HeadersExtractor


public interface HeadersExtractor
Used to extract all header values with a specific header name.

Useful for protocols such as HTTP which allow that a header can have multiple values.

Can be implemented as a lambda in Java 8 and as an anonymous inner class in Java 7.

  • Method Summary

    Modifier and Type
    Method
    Description
    getAllHeaders(String headerName)
    Returns all values of the provided header name
  • Method Details

    • getAllHeaders

      Iterable<String> getAllHeaders(String headerName)
      Returns all values of the provided header name
      Parameters:
      headerName - the name of the header to extract
      Returns:
      all values of the provided header name