Package org.forgerock.services.routing
Interface RouteMatch
public interface RouteMatch
Contains the result of routing to a particular route.
- 
Method Summary
Modifier and TypeMethodDescriptiondecorateContext(Context context) Decorates the given context with any routing information for the route.booleanisBetterMatchThan(RouteMatch result) Determines whether this route match is better than the given rout match. 
- 
Method Details
- 
isBetterMatchThan
Determines whether this route match is better than the given rout match.Implementation should check that the
RouteMatchcan be compared to this instance.- Parameters:
 result- The other route match to compare to.- Returns:
 trueif this route match is the better,falseotherwise.- Throws:
 IncomparableRouteMatchException- If the providedRouteMatchcould not be compared thisRouteMatchinstance.
 - 
decorateContext
Decorates the given context with any routing information for the route.- Parameters:
 context- The original context to decorate.- Returns:
 - The decorated context.
 
 
 -