public interface Route
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.
|
ControllerMethod controllerMethod(MutableRequest request, String uri)
canHandle(String)
method, and see if request
HTTP method is in allowedMethods()
before calling this method.boolean canHandle(String uri)
EnumSet<HttpMethod> allowedMethods()
String urlFor(Class<?> type, Method m, Object... params)
boolean canHandle(Class<?> type, Method method)
int getPriority()
String getOriginalUri()
ControllerMethod getControllerMethod()
Copyright © 2014 Caelum. All rights reserved.