Set a path for Mvc routes.
@Path("/r") class Resources { @GET("/sub") public void method() { } }
Path Patterns
Jooby supports Ant-style path patterns:
Some examples:
com/t?st.html
- matchescom/test.html
but alsocom/tast.jsp
orcom/txst.html
com/*.html
- matches all.html
files in thecom
directorycom/**/test.html
- matches alltest.html
files underneath thecom
path**
/*
- matches any path at any level.*
- matches any path at any level, shorthand for**
/*
.
Variables
Jooby supports path parameters too:
Some examples:
/user/{id}
- /user/* and give you access to theid
var./user/{id:\\d+}
- /user/[digits] and give you access to the numericid
var.
- Since:
- 0.1.0
- Author:
- edgar
-
Required Element Summary
Required Elements
-
Element Details
-
value
String[] value- Returns:
- Route path pattern.
-