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
|
String |
getOriginalUri()
Returns the original uri for this route
|
int |
getPriority()
Routes will be ordered according to priority.
|
ResourceMethod |
resourceMethod(MutableRequest request,
String uri)
Returns the resource method for this specifig rule.
|
String |
urlFor(Class<?> type,
Method m,
Object... params)
Returns the url which invokes this rule with values extracted from this
parameter object.
|
ResourceMethod resourceMethod(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()
Copyright © 2014 Caelum. All Rights Reserved.