Interface AuthorityRoute<A>

Type Parameters:
A - the resource type
All Superinterfaces:
Route<A>

public interface AuthorityRoute<A> extends Route<A>

An authority route.

This is used to define route based on the authority specified in an input. For instance, in order to resolve a handler for an HTTP request with host: example.org header, an authority route must be defined with authority example.org targeting a handler producing example.org content.

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

    • getAuthority

      String getAuthority()

      Returns an authority.

      Returns:
      an authority
    • getAuthorityPattern

      Pattern getAuthorityPattern()

      Returns a pattern for authority matching.

      Returns:
      an authority pattern