Class ScoreMethodAndExtractPathVars

java.lang.Object
org.wicketstuff.rest.resource.urlsegments.visitor.ScoreMethodAndExtractPathVars
All Implemented Interfaces:
ISegmentVisitor

public class ScoreMethodAndExtractPathVars extends Object implements ISegmentVisitor
Visitor implementation to assign a score to URL segments and to extract path variables. The score is an integer positive value if the string in input is compatible with the current segment, 0 otherwise. Segments of type FixedURLSegment have the priority over the other types of segment. That's why positive matches has a score of 2 for FixedURLSegment, it's 1 for the other types of segment.
Author:
andrea del bene