Constructor and Description |
---|
NoStrategy() |
Modifier and Type | Method and Description |
---|---|
EnumSet<HttpMethod> |
allowedMethods() |
boolean |
canHandle(Class<?> type,
Method method)
Returns true if this route is able to redirect to this method.
|
boolean |
canHandle(String uri)
Returns if this route can handle this URI
|
ControllerMethod |
controllerMethod(MutableRequest request,
String uri)
Returns the controller method for this specifig rule.
|
ControllerMethod |
getControllerMethod() |
String |
getOriginalUri()
Returns the original uri for this route
|
int |
getPriority()
Routes will be ordered according to priority.
|
String |
urlFor(Class<?> type,
Method m,
Object... params)
Returns the url which invokes this rule with values extracted from this
parameter object.
|
public ControllerMethod controllerMethod(MutableRequest request, String uri)
Route
Route.canHandle(String)
method, and see if request
HTTP method is in Route.allowedMethods()
before calling this method.controllerMethod
in interface Route
public String urlFor(Class<?> type, Method m, Object... params)
Route
public boolean canHandle(Class<?> type, Method method)
Route
public boolean canHandle(String uri)
Route
public int getPriority()
Route
getPriority
in interface Route
public EnumSet<HttpMethod> allowedMethods()
allowedMethods
in interface Route
public String getOriginalUri()
Route
getOriginalUri
in interface Route
public ControllerMethod getControllerMethod()
getControllerMethod
in interface Route
Copyright © 2014 Caelum. All rights reserved.