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)
Route
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.util.EnumSet<HttpMethod> allowedMethods()
allowedMethods
in interface Route
public boolean canHandle(java.lang.String uri)
Route
public java.lang.String urlFor(java.lang.Class<?> type, java.lang.reflect.Method m, java.lang.Object... params)
Route
public int getPriority()
Route
getPriority
in interface Route
public java.lang.String getOriginalUri()
Route
getOriginalUri
in interface Route
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2013 Caelum. All Rights Reserved.