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