Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Restricting Http methods thru tomcat configurations

 
Gibu John
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How will I restrict http methods like delete put etc thru tomcat configuration or thru web.xml . I am not using security roles. authentication is thru database maintained users.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You shouldn't need to.

Writing servlets amounts to white listing the methods you want to support by overriding them. The implementation of HttpServlet in Tomcat returns a 405 response code for any of the service methods that you don't explicitly override.



Most people only override doPost and doGet.
[ March 17, 2008: Message edited by: Ben Souther ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic