@Inherited @Target(value={TYPE,METHOD}) @Retention(value=RUNTIME) @Documented public @interface Consumes
MessageBodyReader
can accept. If
not specified, a container will assume that any media type is acceptable.
Method level annotations override a class level annotation. A container
is responsible for ensuring that the method invoked is capable of consuming
the media type of the HTTP request entity body. If no such method is
available the container must respond with a HTTP "415 Unsupported Media Type"
as specified by RFC 2616.MessageBodyReader
public abstract String[] value
{"image/jpeg, image/gif ", " image/png"}Use of the comma-separated form allows definition of a common string constant for use on multiple targets.
Copyright © 2007-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.