RE: Representation<T> and Entity<T>

From: Jerome Louvel <>
Date: Tue, 10 Apr 2007 15:00:52 +0200


> public Entry postEntry(InputStream data,
> @HeaderParam("Content-Type")
> String type)
> What is the value of the @Input annotation ?

Beside making the binding more explicit, it lets the developer specify (or
override) constraints on the acceptable inputs, like the media types, the
languages, the character sets, maybe a maximum size, etc.

Best regards,