0

I have security domain configured in web.xml as:

<security-constraint>
    <display-name>all</display-name>
        <web-resource-collection>
            <web-resource-name>all</web-resource-name>
            <url-pattern>${param-name</url-pattern>
            <http-method>POST</http-method>
            <http-method>GET</http-method>
            <http-method>PUT</http-method>
            <http-method>DELETE</http-method>
            <http-method>PATCH</http-method>
        </web-resource-collection>
        <auth-constraint>
        <role-name>admin</role-name>
    </auth-constraint>
</security-constraint>

Now I want to set url-pattern here at server startup from java at runtime. How can I do that?

Yash
  • 11,486
  • 4
  • 19
  • 35
viv kumar
  • 252
  • 4
  • 13

1 Answers1

0

refer java doc to set url-pattern

Varsha
  • 1,150
  • 9
  • 12