Interface HeadersRoute<A>

All Superinterfaces:
Route<A>

public interface HeadersRoute<A> extends Route<A>

A headers route.

This is used to define route based on the headers specified in an input. For instance, in order to resolve a handler for an HTTP request with a customer: abc header, an headers route must be defined with a header matcher for customer header targeting the abc customer handler.

Since:
1.12
Author:
Jeremy Kuhn
See Also:
  • Method Details

    • getHeadersMatchers

      Map<String,HeadersRoute.HeaderMatcher> getHeadersMatchers()

      Returns the headers matchers for each header matched by the route.

      Returns:
      a map of header matchers