com.sun.ws.rest.api
Annotation Type ProduceMime


@Inherited
@Target(value={TYPE,METHOD})
@Retention(value=RUNTIME)
public @interface ProduceMime

Defines the MIME type(s) that the methods of a resource class can produce. Method level annotations override a class level annotation. The container is responsible for ensuring that the method invoked is capable of producing one of the MIME types requested in the HTTP request. If no such method is available the container must respond with a HTTP "406 Not Acceptable" as specified by RFC 2616.

A method for which there is a single-valued ProduceMime is not required to set the media type of representations that it produces: the container will use the value of the ProduceMime when sending a response.


Optional Element Summary
 java.lang.String value
          A comma separated list of MIME types.
 

value

public abstract java.lang.String value
A comma separated list of MIME types. E.g. "image/jpeg,image/gif"

Default:
"*/*"