R - The type or request being matched.public class DelegatingRouteMatcher<R> extends RouteMatcher<R>
| Constructor and Description |
|---|
DelegatingRouteMatcher(RouteMatcher<R> delegate)
Create a new route matcher, delegating to the provided delegate.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
RouteMatch |
evaluate(Context context,
R request)
Evaluates the request and determines whether it matches the route.
|
int |
hashCode() |
String |
idFragment()
The fragment of an API ID that this matcher provides.
|
String |
toString()
Returns a
String representation of the route matcher. |
<D> D |
transformApi(D descriptor,
ApiProducer<D> producer)
Transform the API Descriptor as appropriate for the parent router's view of the child routes.
|
public DelegatingRouteMatcher(RouteMatcher<R> delegate)
delegate - The delegate.public RouteMatch evaluate(Context context, R request)
RouteMatcherevaluate in class RouteMatcher<R>context - The request context.request - The request.RouteMatch, if the request matches the route, or
null, if not.public String toString()
RouteMatcherString representation of the route matcher.toString in class RouteMatcher<R>public String idFragment()
RouteMatcheridFragment in class RouteMatcher<R>public int hashCode()
hashCode in class RouteMatcher<R>public boolean equals(Object o)
equals in class RouteMatcher<R>public <D> D transformApi(D descriptor,
ApiProducer<D> producer)
RouteMatchertransformApi in class RouteMatcher<R>D - The type of descriptor object.descriptor - The descriptor to be mutated.producer - The API Descriptor producer.Copyright © 2025 Open Identity Platform Community. All rights reserved.