|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Inherited @Target(value={TYPE,METHOD}) @Retention(value=RUNTIME) public @interface UriTemplate
Identifies the URI path that a resource class or class method
will serve requests for. All
Web resource classes require an @UriTemplate annotation.
Classes may also be annotated with
@ConsumeMime
and @ProduceMime
to filter the
requests they will receive.
The container must honour annotations from the javax.annotation package. In
particular, resource class instance lifecycle can be managed using the
javax.annotation.PostConstruct and java.annotation.PreDestroy annotations
and a class can obtain access to container context information using
javax.annotation.Resource as specified in JSR 250.
ConsumeMime
,
ProduceMime
Required Element Summary | |
---|---|
java.lang.String |
value
Defines a URI template for the resource. |
Element Detail |
---|
public abstract java.lang.String value
E.g.: @UriTemplate("widgets/{id}")
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |