RESTful Strings matcher in Java

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?

5
задан Charles Abreu 24 August 2010 в 23:22
поделиться