Interface PathRoute.Manager<A,B,C extends PathRoute<A>,D extends PathRoute.Manager<A,B,C,D,E>,E extends Router<A,B,C,D,E>>

Type Parameters:
A - the resource type
B - the input type
C - the path route type
D - the path route manager type
E - the router type
All Superinterfaces:
RouteManager<A,B,C,D,E>
Enclosing interface:
PathRoute<A>

public static interface PathRoute.Manager<A,B,C extends PathRoute<A>,D extends PathRoute.Manager<A,B,C,D,E>,E extends Router<A,B,C,D,E>> extends RouteManager<A,B,C,D,E>

A path route manager.

Since:
1.12
Author:
Jeremy Kuhn
  • Method Summary

    Modifier and Type
    Method
    Description
    path(String path)
    Specifies the absolute path matching the path in an input.
    pathPattern(URIPattern pathPattern)
    Specifies the absolute path pattern matching the path in an input.
    default D
    resolvePath(String path, boolean matchTrailingSlash)
    Specifies the path or path pattern matching the path in an input.

    Methods inherited from interface io.inverno.mod.http.base.router.RouteManager

    disable, enable, findRoutes, remove, set, set, set
  • Method Details

    • resolvePath

      default D resolvePath(String path, boolean matchTrailingSlash) throws IllegalArgumentException

      Specifies the path or path pattern matching the path in an input.

      This method determines whether the specified path is a static path or a pattern and then delegates to path(String) or pathPattern(URIPattern).

      Parameters:
      path - an absolute path or path pattern
      matchTrailingSlash - true to match trailing slash, false otherwise
      Returns:
      the route manager
      Throws:
      IllegalArgumentException - if the specified path is not absolute
    • path

      D path(String path)

      Specifies the absolute path matching the path in an input.

      Parameters:
      path - an absolute path
      Returns:
      the route manager
    • pathPattern

      D pathPattern(URIPattern pathPattern)

      Specifies the absolute path pattern matching the path in an input.

      Parameters:
      pathPattern - an absolute path pattern
      Returns:
      the route manager