javax.ws.rs
Annotation Type PathParam


@Target(value=PARAMETER)
@Retention(value=RUNTIME)
public @interface PathParam

Binds a method parameter to a URI template parameter value or a path segment containing the template parameter. The value is URL decoded unless this is disabled using the Encoded annotation. The type of the annotated parameter must either:

See Also:
Encoded, PathSegment, UriInfo

Required Element Summary
 java.lang.String value
          Defines the name of the URI template parameter who value will be used to initialize the value of the annotated method parameter, class field or property.
 

Element Detail

value

public abstract java.lang.String value
Defines the name of the URI template parameter who value will be used to initialize the value of the annotated method parameter, class field or property.

E.g. a class annotated with: @Path("widgets/{id}") can have methods annotated with a HTTP method annotation whose arguments are annotated with @PathParam("id").