The web.xml looks like this:
Code: Select all
<url-pattern>/jax/rs/add/*</url-pattern>
<http-method>POST</http-method>
<http-method>PUT</http-method>
<http-method>DELETE</http-method>
<auth-constraint>
<role-name>student</role-name>
</auth-constraint>