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