I am looking for a Java library that evaluates REST-style URLs. Sort of:
public Result evaluate(String url, String pattern);
The sample will look something like this:
/ users / {user ID} / photos / {PHOTOID} .html
The result should include:
- if the url matches the pattern
- actual values of the URL variables {userId} and {photoId}
Can anyone help please?
source
share