On Mon, 20 Oct 2014 10:50:25 GMT, Arjan wrote:

On Mon, 20 Oct 2014 07:31:53 GMT, Sönke Ludwig wrote:

There is also currently an open pull request (which I still need to review) that will add @fromQuery and @fromHeader attributes.

Thanks. Will take a look at that pull request to see whether or not it suit my needs.

Arjan

Note: Only @fromRequest is in the PR, but @fromQuery should follow pretty soon, should the design suits you Sönke ;)

If you just need to get a value from the header / query in the server, @before would be fine.
You however have to know that the function must be visible to the interface, thus it will leak in the client side. So avoid anything that's not self-contained.
In addition, it works server-side, but not client-side (meaning that you cannot send a parameter through header with the REST generator, you have to do it by hand).