パスが /rest/* のドメインを GET リクエストのみに制限したい。だから私は私のweb.xmlでそれを宣言します:
<security-constraint>
<web-resource-collection>
<web-resource-name>All</web-resource-name>
<url-pattern>/rest/*</url-pattern>
<http-method>GET</http-method>
</web-resource-collection>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>Auth</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>Admin</role-name>
</auth-constraint>
</security-constraint>
ただし、(たとえば) '/rest/add' に対して POST-Request を実行すると、Webcontainer は POST-Request を受け入れて送信します。どうしてこんなことに?