RequestPathMatch

The {@link oajr.RequestPath} object is the API for accessing the matched variables and remainder on the URL path.

@RestMethod(...) public Object myMethod(RequestPathMatch path) {...}

##### Example:

@RestMethod(..., path="/{foo}/{bar}/{baz}/*") public void doGet(RequestPathMatch path) { // Example URL: /123/qux/true/quux int foo = pm.getInt("foo"); // =123 String bar = pm.getString("bar"); // =qux boolean baz = pm.getBoolean("baz"); // =true String remainder = pm.getRemainder(); // =quux }

Some important methods on this class are:

- `{@link oajr.RequestPath} extends TreeMap<String,String>`
  - {@link oajr.RequestPath#get(String,Class) get(String,Class)} - Get path match variable converted to a POJO.
  - {@link oajr.RequestPath#get(String,Type,Type...) get(String,Type,Type)} - Get path match variable converted to a map or collection of POJOs.
  - {@link oajr.RequestPath#getString(String) getString(String)} - Get patch match variable as a simple string.
  - {@link oajr.RequestPath#getInt(String) getInt(String)} - Get path match variable as an integer.
  - {@link oajr.RequestPath#getBoolean(String) getBoolean(String)} - Get path match variable as a boolean.
  - {@link oajr.RequestPath#getRemainder() getRemainder()} - Get the path match remainder.

##### See Also:

- {@link oaj.http.annotation.Path}