http://docs.oracle.com/javaee/6/api/javax/ws/rs/package-summary.html
| Annotation Types Summary | |
|---|---|
| ApplicationPath | Identifies the application path that serves as the base URI for all resource URIs provided by Path. |
| Consumes | Defines the media types that the methods of a resource class or MessageBodyReader can accept. |
| CookieParam | Binds the value of a HTTP cookie to a resource method parameter, resource class field, or resource class bean property. |
| DefaultValue | Defines the default value of request metadata that is bound using one of the following annotations: PathParam, QueryParam, MatrixParam, CookieParam, FormParam, or HeaderParam. |
| DELETE | Indicates that the annotated method responds to HTTP DELETE requests |
| Encoded | Disables automatic decoding of parameter values bound using QueryParam, PathParam, FormParam or MatrixParam. |
| FormParam | Binds the value(s) of a form parameter contained within a request entity body to a resource method parameter. |
| GET | Indicates that the annotated method responds to HTTP GET requests |
| HEAD | Indicates that the annotated method responds to HTTP HEAD requests |
| HeaderParam | Binds the value(s) of a HTTP header to a resource method parameter, resource class field, or resource class bean property. |
| HttpMethod | Associates the name of a HTTP method with an annotation. |
| MatrixParam | Binds the value(s) of a URI matrix parameter to a resource method parameter, resource class field, or resource class bean property. |
| OPTIONS | Indicates that the annotated method responds to HTTP OPTIONS requests |
| Path | Identifies the URI path that a resource class or class method will serve requests for. |
| PathParam | Binds the value of a URI template parameter or a path segment containing the template parameter to a resource method parameter, resource class field, or resource class bean property. |
| POST | Indicates that the annotated method responds to HTTP POST requests |
| Produces | Defines the media type(s) that the methods of a resource class or MessageBodyWriter can produce. |
| PUT | Indicates that the annotated method responds to HTTP PUT requests |
| QueryParam | Binds the value(s) of a HTTP query parameter to a resource method parameter, resource class field, or resource class bean property. |
本文概述了 Java EE 中用于定义 RESTful 服务的各种注解,包括路径映射、HTTP 方法绑定、请求参数绑定等功能。这些注解帮助开发者轻松创建 RESTful Web 服务。
1396

被折叠的 条评论
为什么被折叠?



