org.trialox.jaxrs
Class MethodMatcher

java.lang.Object
  extended by org.trialox.jaxrs.MethodMatcher

public final class MethodMatcher
extends java.lang.Object

this class is responsible to match a path to a method

Author:
szalay

Constructor Summary
MethodMatcher()
           
 
Method Summary
static SortableMethod getBestMatchingMethod(WebRequest request, java.lang.Class resourceClass, java.lang.String completePath, java.lang.String remainingURIPath, java.lang.Class annotationClass)
          get best matching method
static java.util.SortedSet<SortableMethod> getMethods(WebRequest request, java.lang.Class resourceClass, java.lang.String completePath, java.lang.String remainingURIPath, java.lang.Class annotationClass)
          get all method candidates
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodMatcher

public MethodMatcher()
Method Detail

getBestMatchingMethod

public static SortableMethod getBestMatchingMethod(WebRequest request,
                                                   java.lang.Class resourceClass,
                                                   java.lang.String completePath,
                                                   java.lang.String remainingURIPath,
                                                   java.lang.Class annotationClass)
get best matching method


getMethods

public static java.util.SortedSet<SortableMethod> getMethods(WebRequest request,
                                                             java.lang.Class resourceClass,
                                                             java.lang.String completePath,
                                                             java.lang.String remainingURIPath,
                                                             java.lang.Class annotationClass)
get all method candidates

Parameters:
resourceClass -
completePath -
remainingURIPath -
annotationClass -
Returns:


Copyright © 2008. All Rights Reserved.