Interface PathRoute<A>

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

public interface PathRoute<A> extends Route<A>

A path route.

This is used to define route based on the path specified in an input. For instance, in order to resolve a handler for an HTTP request targeting resource /path/to/resource, a path route must be defined with /path/to/resource path targeting a specific resource handler.

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

    • getPath

      String getPath()

      Returns an absolute normalized path.

      Returns:
      an absolute normalized path or null
    • getPathPattern

      URIPattern getPathPattern()

      Returns an absolute URI pattern.

      Returns:
      an absolute URI pattern or null