dev@jsr311.java.net

Re: Representation<T> and Entity<T>

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Tue, 10 Apr 2007 12:45:47 +0200

>> @Method
>> public Entry postEntry(@Input InputStream data, @MediaType String type) {
>>
>
> How would one return the media type, language, or content location?
>
> In the above example I do see how the @MediaType makes it easier for

Doh! i meant to say:

"In the above example I do not see.."

Paul.

> developers or that it adds any value to the API. A Java class will do
> just fine, for example:
>
> public Entry postEntry(@Input InputStream data, MediaType type)
>
> And MediaType can provide support for getting access to parameters on
> the media type.
>
>
>
>> Note that @Input is a specialized version of @Representation pointing
>> to the
>> representation received as request entity.
>>
>
> It seems like we are converging on a solution as Input/Output is very
> similar to Consume/Produce.
>
> Paul.
>

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109