public static class Router.Route
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
action
FIXME - what is this?
|
java.lang.String |
method
HTTP method, e.g.
|
java.lang.String |
path |
java.lang.String |
routesFile |
int |
routesFileLine |
Constructor and Description |
---|
Route() |
Modifier and Type | Method and Description |
---|---|
void |
addFormat(java.lang.String params) |
void |
addParams(java.lang.String params) |
void |
compute() |
java.util.Map<java.lang.String,java.lang.String> |
matches(java.lang.String method,
java.lang.String path) |
java.util.Map<java.lang.String,java.lang.String> |
matches(java.lang.String method,
java.lang.String path,
java.lang.String accept) |
java.util.Map<java.lang.String,java.lang.String> |
matches(java.lang.String method,
java.lang.String path,
java.lang.String accept,
java.lang.String domain)
Check if the parts of a HTTP request equal this Route.
|
java.lang.String |
toString() |
public java.lang.String method
public java.lang.String path
public java.lang.String action
public int routesFileLine
public java.lang.String routesFile
public void compute()
public void addParams(java.lang.String params)
public void addFormat(java.lang.String params)
public java.util.Map<java.lang.String,java.lang.String> matches(java.lang.String method, java.lang.String path)
public java.util.Map<java.lang.String,java.lang.String> matches(java.lang.String method, java.lang.String path, java.lang.String accept)
public java.util.Map<java.lang.String,java.lang.String> matches(java.lang.String method, java.lang.String path, java.lang.String accept, java.lang.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).public java.lang.String toString()
toString
in class java.lang.Object
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly