dev@jsr311.java.net

Re: Representation<T> and Entity<T>

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Tue, 10 Apr 2007 09:17:17 -0400

On Apr 10, 2007, at 9:00 AM, Jerome Louvel wrote:
>
>> 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.
>
Sort of a souped-up @ConsumeMime then but on the parameter rather
than the method - right ?

Marc.

---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.