Tuesday, April 23, 2013

Matrix Parameters and Query Parameters

Just to remind myself the concepts of:
Query parameters: http://example.com/apples?order=random&color=blue
Matrix parameters: http://example.com/apples;order=random;color=blue

- Maxtrix parameters is not commonly used.

- Matrix parameters can make RESTful URL more expressive.

- JAX-RS supports matrix parameters. Spring MVC supports it since 3.2.

- Servlet container uses ;jsessionid=xxx in the URI when client cookies is disabled, this is called URL-Rewriting.

No comments: