dev@jsr311.java.net

RE: Representation<T> and Entity<T>

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

Marc,

> 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,
Jerome