| Constructor and Description |
|---|
FixedMethodStrategy(String originalUri,
ResourceMethod method,
Set<HttpMethod> methods,
ParametersControl control,
int priority,
String[] parameterNames) |
| 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
|
boolean |
equals(Object obj) |
String |
getOriginalUri()
Returns the original uri for this route
|
int |
getPriority()
Routes will be ordered according to priority.
|
int |
hashCode() |
ResourceMethod |
resourceMethod(MutableRequest request,
String uri)
Returns the resource method for this specifig rule.
|
String |
toString() |
String |
urlFor(Class<?> type,
Method m,
Object... params)
Returns the url which invokes this rule with values extracted from this
parameter object.
|
public FixedMethodStrategy(String originalUri, ResourceMethod method, Set<HttpMethod> methods, ParametersControl control, int priority, String[] parameterNames)
public boolean canHandle(Class<?> type, Method method)
Routepublic ResourceMethod resourceMethod(MutableRequest request, String uri)
RouteRoute.canHandle(String) method, and see if request
HTTP method is in Route.allowedMethods() before calling this method.resourceMethod in interface Routepublic EnumSet<HttpMethod> allowedMethods()
allowedMethods in interface Routepublic boolean canHandle(String uri)
Routepublic String urlFor(Class<?> type, Method m, Object... params)
Routepublic int getPriority()
RoutegetPriority in interface Routepublic String getOriginalUri()
RoutegetOriginalUri in interface RouteCopyright © 2014 Caelum. All Rights Reserved.