Class PathVariable
java.lang.Object
com.invirgance.convirgance.web.parameter.PathVariable
- All Implemented Interfaces:
Parameter
Extracts a variable from the URL path. This parameter can only extract a
single parameter, so multiple parameters will need to be configured to
extract multiple values. Parameter names are identified in the path with
curly braces. e.g.
A
/path/{id}
defines a variable called
id
that can be extracted from the path.A
*
can be used whenever a dynamic path component needs to be
defined but not extracted by this parameter. e.g. /path/%2A/subpath/{id}
defines a dynamic path component between path
and subpath
.- Author:
- jbanes
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PathVariable
public PathVariable()
-
-
Method Details
-
getPath
The path pattern that has been set- Returns:
- the parameterized path
-
setPath
Set the path pattern- Parameters:
path
- the parameterized path
-
getName
Description copied from interface:Parameter
Gets the name of this parameter. -
getValue
Description copied from interface:Parameter
Extracts a value from the HTTP request.
-