@Target(value={PARAMETER,METHOD}) @Retention(value=RUNTIME) public @interface PathParam
See the following example:
..@GET@Path("test/{param1}") public String testOperation(@PathParam("param1") String value) { return null; }
The parameter value will be bound to the fragment extracted from the requested path to the server.
public abstract String value
Path.value() for a description of the syntax of
template parameters.
E.g. a class annotated with: @Path("widgets/{id}")
can have methods annotated whose arguments are annotated
with @PathParam("id").
Copyright © 2016. All rights reserved.