![]() |
![]() |
||||
This tag is used inside a <security-constraint> tag to define a resource which will be restricted by the constraint, and an optional set of HTTP methods.
The resource location is specified as a URL pattern with a subelement of <url-pattern>.
HTTP methods are specified with a subelement of <http-method>. If this element is left out, all HTTP methods are protected. It is recommended to leave this subelement out unless you really have a reason to list only certain methods and understand the implications.
A name for the web resource is specified with <web-resource-name>. This element is required.
There is also an optional description element, specified with <description> tag, used for internal documentation of the data.