Modifier and Type | Field and Description |
---|---|
String |
action |
String |
method
HTTP method, e.g.
|
String |
path |
String |
routesFile |
int |
routesFileLine |
Constructor and Description |
---|
Route() |
Modifier and Type | Method and Description |
---|---|
void |
addFormat(String params) |
void |
addParams(String params) |
void |
compute() |
Map<String,String> |
matches(String method,
String path) |
Map<String,String> |
matches(String method,
String path,
String accept) |
Map<String,String> |
matches(String method,
String path,
String accept,
String domain)
Check if the parts of a HTTP request equal this Route.
|
String |
toString() |
public String method
public String path
public String action
public int routesFileLine
public String routesFile
public void compute()
public void addParams(String params)
public void addFormat(String params)
public Map<String,String> matches(String method, String path, String accept, String domain)
method
- GET/POST/etc.path
- Part after domain and before query-string. Starts with a "/".accept
- Format, e.g. html.domain
- The domain (host without port).Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly