Is it possible to do something like that?
import javax.ws.rs.GET; import javax.ws.rs.Path; public class xxx { @GET @Path(value = \"path1\") public Res
@Path("/{a:path1|path2}")
From resteasy docs: http://docs.jboss.org/resteasy/docs/1.0.2.GA/userguide/html_single/index.html#_Path_and_regular_expression_mappings