public class RegisteredMethod extends Object implements Comparable<RegisteredMethod>
A registered method is a method with a parameter name list and optionally also a pattern matcher and a priority.
Constructor and Description |
---|
RegisteredMethod(RequestManager m,
Method method,
String[] paramnames,
PatternMatcher patternmatcher,
float priority,
Set<String> httpMethods)
Constructs a new registered method.
|
RegisteredMethod(RequestManager m,
Method method,
String[] paramnames,
Set<String> httpMethods)
Constructs a new registered method.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(RegisteredMethod rm)
Registered methods are ordered by priority.
|
Set<String> |
getHttpMethods() |
Method |
getMethod()
Returns the actual method.
|
String[] |
getParameterNames()
Returns the parameter names.
|
PatternMatcher |
getPatternMatcher()
Returns the pattern matcher.
|
RequestManager |
getRequestManager() |
public RegisteredMethod(RequestManager m, Method method, String[] paramnames, PatternMatcher patternmatcher, float priority, Set<String> httpMethods)
public RegisteredMethod(RequestManager m, Method method, String[] paramnames, Set<String> httpMethods)
public int compareTo(RegisteredMethod rm)
compareTo
in interface Comparable<RegisteredMethod>
public Method getMethod()
public String[] getParameterNames()
public PatternMatcher getPatternMatcher()
public RequestManager getRequestManager()
Copyright © 2008-2012 Anders Møller & Mathias Schwarz.