I'm looking for a Java library that evaluates REST-style URLs. Something like:
public Result evaluate(String url, String pattern);
The pattern would be something like:
/users/{userId}/photos/{photoId}.html
The result must include:
- indication if the url matches pattern
- the actual values of the url variables {userId} and {photoId}
Can anyone help, please?