Annotation Interface Accepts
Defines the range of media-types that can be accepted by a resource for an update operation (e.g. PUT, POST). Does not apply to read operations.
An empty set implies that the resource can accept any media-type or takes care of checking media-types itself.
Media-types can include an asterisk wild card, either before the
/ separator or immediately after.
For example to accept the default JSON mime type and all application specific dialects use:
@Accepts({"application/json","application/*+json"}
To accept any image mime type, use:
@Accepts({"image/*"}
- Author:
- cdivilly
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
String[] valueThe set of media types that a resource can accept for update requests, e.g. PUT or POST.- Returns:
- The media types that this resource can accept
- Default:
- {}
-