Re: ProduceMime and ConsumeMime

From: Julian Reschke <>
Date: Mon, 09 Apr 2007 17:23:11 +0200

Paul Sandoz schrieb:
> ...
> That i why the names of the annotation are Consume/ProduceMime (although
> Consume/ProduceMedia would be better). If a POJO that is a resource is
> annotated it says that all HTTP methods of that resource are capable of
> consuming or producing the media types declared by those annotations.
> The annotations on the method override those of the class.
> ...

Does that mean that there is an assumption that the set of acceptable
media types is independant of the method? I think that would be a
problem (consider a server that accepts any media type for PUT, but only
one specific diff format for PATCH).

Best regards, Julian