Annotation Interface Resource
Annotates a business method of a CDI bean as an exposed resource.
The result of a "resource read" operation is always represented as a
. However, the annotated method
can also return other types that are converted according to the following rules.
invalid reference
ResourceResponse
- If the method returns an implementation of
ResourceContentsthen the reponse contains the single contents object. - If the method returns a
ListofResourceContentsimplementations then the reponse contains the list of contents objects. - The method may return a
that wraps any of the type mentioned above.
invalid reference
Uni
-
Field Details
-
ELEMENT_NAME
-
-
Element Details
-
name
-
description
-
uri
String uri"The URI of this resource." -
mimeType
-