Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Path("/app/{resource}") //Suppose resource comes as Apple or Mango.
- @Produces(value=MediaType.APPLICATION_JSON)
- public class AppResource {
- @GET
- public Response getResource(@PathParam("resource") String resource) {
- // Here want to convert resource to Apple or Mango class so that I can create a List<Apple> or List<Mango>.
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement