JAX-RS path requested
how can i write the following in correct Java ?:
@GET
@Path("{blah}/{blahh}")
public String getAnything(@PathParam("blah") String blah,
@PathParam("blahh") String blahh,
@Path String path) {
return "<a href=" + path + ">Hi</a>";
}
I want to get the entire requested Path in a variable. How should I do it? I am using Jersey, JAX-RS and Tomcat.
+3
source to share