R
- The type of the request.public abstract class RouteMatcher<R> extends Object
RouteMatch
, if the route
matches, or null
, if the route does not match, from the
evaluate(Context, Object)
method.
Implementing classes must implement both equals(Object)
and
hashCode()
methods as each instance of a RouteMatcher
will be used as the key for a route.
Constructor and Description |
---|
RouteMatcher() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
equals(Object o) |
abstract RouteMatch |
evaluate(Context context,
R request)
Evaluates the request and determines whether it matches the route.
|
abstract int |
hashCode() |
abstract String |
toString()
Returns a
String representation of the route matcher. |
public RouteMatcher()
public abstract RouteMatch evaluate(Context context, R request)
context
- The request context.request
- The request.RouteMatch
, if the request matches the route, or
null
, if not.Copyright 2011-2015 ForgeRock AS.