Annotation Type Accepts
-
@Retention(RUNTIME) @Target({TYPE,PACKAGE,METHOD}) @Documented public @interface AcceptsDefines 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 Modifier and Type Optional Element Description java.lang.String[]valueThe set of media types that a resource can accept for update requests, e.g.
-