how do you include path's in the method names of the generated sub methods?
i.e. I'm doing java -> wadl -> java development.
I've created a rest service like :
@Component
@Path("/TestRs")
public class TestRs
{
@GET
@Path("helloWorld")
public String helloWorld()
{
return("Hello World! " + (new java.util.Date()));
}
@GET
@Path("helloWorld2")
public String helloWorld2()
{
return("Hello World2! " + (new java.util.Date()));
}
}
It works fine from a browser and the wadl is created (and looks fine to me).
When I try to run the wadl2java generator I end up with a class stub with
@GET
@Produces("application/octet-stream")
@Path("/helloWorld")
String get();
@GET
@Produces("application/octet-stream")
@Path("/helloWorld2")
String get();
which the fails to compile with "get() is already defined" for obvious
reasons.
My problem is, how do I make it so it doesn't generate get() and instead
generateds getHelloWorld() or just helloWorld()?
I don't see any options in the generator. I don't see any other way around
having multiple @GET items in a given wadl/class.
--
Ted.