Does Jersey provide any way to list all of the resources it exposes? That is, given the resource class:
package com.zoo.resource
@Path("/animals")
public class AnimalResource {
@GET
@Produces(MediaType.APPLICATION_JSON)
@Path("dog")
public Dog getDog(){
...
}
@GET
@Produces(MediaType.APPLICATION_JSON)
@Path("cat")
public Cat getCat(){
...
}
}
Does Jersey provide any way for me to get the information:
GET
at the path/animals/dog
returns typeDog
GET
at the path/animals/cat
returns typeCat
(And furthermore, does it provide a way for me to know that AnimalResource is a resource?)
I would like to have this information available to me in a unit test so that I can check that every resource I expose conforms to what an external system expects. I know that there is automagic that exposes the application.wadl, but I don't see that showing me return types and I don't know how to access it from within my tests.