|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.khubla.pragmatach.framework.router.PragmatachRoute
public class PragmatachRoute
a specific route
Constructor Summary | |
---|---|
PragmatachRoute(Method method)
ctor |
Method Summary | |
---|---|
int |
compareTo(PragmatachRoute pragmatachRoute)
|
protected View |
findView()
find the view declaration for the route |
Set<Method> |
getAfterMethods()
|
Set<Method> |
getBeforeMethods()
|
List<RouteParameter> |
getBoundRouteParameters()
get bound parameters annotations, in order of the parameters in the method |
PragmatachController |
getControllerClazzInstance(Request request)
get a class instance of the controller, and return a proxy that allows us to intercept method calls |
String |
getDescription()
|
Method |
getMethod()
|
int |
getParameterCount()
number of method parameters |
Route |
getRoute()
|
RouteSpecification |
getRouteSpecification()
|
int |
getSegmentCount()
number of route segments |
View |
getView()
|
boolean |
isWildcardRoute()
|
boolean |
scopes(PragmatachRoute pragmatachRoute)
returns true this route is more general than the passed route, false otherwise |
static boolean |
scopes(String uri1,
String uri2)
check if uri1 scopes uri2. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PragmatachRoute(Method method) throws PragmatachException
PragmatachException
Method Detail |
---|
public static boolean scopes(String uri1, String uri2)
public int compareTo(PragmatachRoute pragmatachRoute)
compareTo
in interface Comparable<PragmatachRoute>
protected View findView() throws PragmatachException
Firstly, look for an annotation on the method, then the class.
PragmatachException
public Set<Method> getAfterMethods()
public Set<Method> getBeforeMethods()
public List<RouteParameter> getBoundRouteParameters()
public PragmatachController getControllerClazzInstance(Request request) throws PragmatachException
PragmatachException
public String getDescription()
public Method getMethod()
public int getParameterCount()
public Route getRoute()
public RouteSpecification getRouteSpecification()
public int getSegmentCount()
public View getView()
public boolean isWildcardRoute()
public boolean scopes(PragmatachRoute pragmatachRoute)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |