Constructor and Description |
---|
NoStrategy() |
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.
|
public ResourceMethod resourceMethod(MutableRequest request, java.lang.String uri)
Route
Route.canHandle(String)
method, and see if request
HTTP method is in Route.allowedMethods()
before calling this method.resourceMethod
in interface Route
public java.lang.String urlFor(java.lang.Class<?> type, java.lang.reflect.Method m, java.lang.Object... params)
Route
public boolean canHandle(java.lang.Class<?> type, java.lang.reflect.Method method)
Route
public boolean canHandle(java.lang.String uri)
Route
public int getPriority()
Route
getPriority
in interface Route
public java.util.EnumSet<HttpMethod> allowedMethods()
allowedMethods
in interface Route
public java.lang.String getOriginalUri()
Route
getOriginalUri
in interface Route
Copyright © 2013 Caelum. All Rights Reserved.