users@jersey.java.net

[Jersey] Re: How to catch the response in case of an invalid query paramter

From: Rob - <skyscrapper666_at_hotmail.com>
Date: Tue, 19 Apr 2011 11:03:36 +1030

Matrix parameters. Query parameters are not part of the REST concept by definition.

Date: Mon, 18 Apr 2011 18:12:41 +0200
From: daniel.j.larsson_at_gmail.com
To: users_at_jersey.java.net
Subject: [Jersey] Re: How to catch the response in case of an invalid query paramter

I'm using matrix parameters for any filtering of collection resources myself. This has the benefit of working when accessing subresources too. This is less interesting for paging data, but handy for other types of filtering. Sadly, Jersey has less than optimal support for matrix parameters unless they occur on the last path segment (http://java.net/jira/browse/JERSEY-408). It's workable as is though.

http://example.com/items;color=yellow/parts/

2011/4/18 Ryan Stewart <rds6235_at_gmail.com>

On Mon, Apr 18, 2011 at 3:02 AM, Rob - <skyscrapper666_at_hotmail.com> wrote:






Query parameters should be banned. They are for REST the equivalent of Java script for the web.
How would you recommend requesting paged data on a GET, then?