| Modifier and Type | Class and Description |
|---|---|
static class |
Router.Route.Arg |
| Modifier and Type | Field and Description |
|---|---|
String |
action |
String |
method
HTTP method, e.g.
|
String |
path |
String |
routesFile |
int |
routesFileLine |
| Constructor and Description |
|---|
Router.Route() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFormat(String params) |
void |
addParams(String params) |
void |
compute() |
String |
getAction() |
List<Router.Route.Arg> |
getArgs() |
String |
getHost() |
String |
getMethod() |
String |
getPath() |
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 String getAction()
public String getHost()
public String getMethod()
public String getPath()
public List<Router.Route.Arg> getArgs()
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.Copyright © 2010-2014. All Rights Reserved.