RE: _at_Representation

From: Jerome Louvel <>
Date: Thu, 26 Apr 2007 17:32:35 +0200


> So in your proposition @Representation marks a method as servicing a
> GET request ? Or could it also be used on put, post, delete, ...
> methods ? E.g.
> @Representation(mediaType="application/xml")
> InputStream delete() {...}

Good point. As we can't have annotations on return types, it does seem that
we will need to split @Representation into two similar @Input and @Output

As for the GET method detection, we can indeed rely on the presence of
@Output and the fact that the method starts with "get" or "to" prefixes.

I've attached a new version with @Input/_at_Output.

Best regards,