JAX-RS (REST)No Comments

Matrix parameters are a set of “name=value” in URI path, for example,

In above URI, the matrix parameter is “author=javasail“, separate by a semi colon “;“.

  • @MatrixParam example

See a full example of using @MatrixParam in JAX-RS.

See following URI patterns and result.

1. URI Pattern : “/books/2011/

2. URI Pattern : “/books/2011;author=javasail

3. URI Pattern : “/books/2011;author=javasail;country=vietnam

4. URI Pattern : “/books/2011;country=vietnam;author=javasail

Be the first to post a comment.

Add a comment

Warning: stream_socket_client(): unable to connect to http://browscap.org/version (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in /home/javasail/public_html/wp-content/plugins/wp-statistics/vendor/browscap/browscap-php/src/phpbrowscap/Browscap.php on line 1366

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/javasail/public_html/wp-content/plugins/wp-statistics/vendor/browscap/browscap-php/src/phpbrowscap/Browscap.php on line 769