RESTful Web Services (JAX-RS) @MatrixParam Example
Matrix Parameters Syntax
Consider this URL
http://localhost:2013/<projectRoot>/rest/customers;nameKey=Java4s;countryKey=USA
If you observe the URL, i am passing 2 parameters nameKey=Java4s & countryKey=USA. One parameter is separated from another with a semicolon, similarly you can pass any number of parameters. These type of parameters are called as Matrix Parameters. I will explain more about matrix parameters in this example.
Read full article from RESTful Web Services (JAX-RS) @MatrixParam Example
No comments:
Post a Comment