dev@jsr311.java.net

Re: Content Negotation vs. Extensions

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Thu, 26 Apr 2007 17:57:23 +0200

Stefan Tilkov wrote:
>> Maybe we could do something like:
>>
>> @UriTemplate("{id}")
>> class Customer {
>> @HttpMethod
>> @ProduceMime("application/xml", "application/json")
>> @SuffixeAntiPattern("application/xml", ".xml",
>> "application/json", ".js")
>> Response get() { ... }
>> }
>>
>
> This looks extremely ugly - but maybe that was your intention :-)
>

Yep!

Paul.

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