EJB 3 in Action, Second Edition by Debu Panda Reza Rahman Ryan Cuprak Michael Remijan

EJB 3 in Action, Second Edition by Debu Panda Reza Rahman Ryan Cuprak Michael Remijan

Author:Debu Panda, Reza Rahman, Ryan Cuprak, Michael Remijan [Unknown]
Language: eng
Format: epub, mobi
Publisher: Manning Publications


The @javax.ws.rs.PathParam annotation maps the parameters specified by the @javax.ws.rs.Path annotation to actual parameters of the Java method. The JAX-RS implementation will perform type conversion when invoking your methods. The annotation is defined as follows:

@Target(value = {ElementType.PARAMETER, ElementType.METHOD, ElementType.FIELD}) @Retention(value = RetentionPolicy.RUNTIME) public @interface PathParam { public String value(); }

Consider the following example that has two parameters encoded within the URI, userId and category:

@GET @Path("/list/{userId}/{category}") public List<Item> listBids( @PathParam("category")String category, @PathParam("userId")long userId ) { ... }



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.