In Java Spring, you can use the RequestMapping annotation to isolate different types of request methods. It is in section 13.11.3 of the following link:
http://static.springsource.org/spring/docs/2.5.x/reference/mvc.html#mvc-annotation
Essentially you can use these annotations to get the HTTP request method type:
@RequestMapping(method = RequestMethod.GET)
@RequestMapping(method = RequestMethod.POST)
@RequestMapping(method = RequestMethod.PUT)
All the request types are in an enum in the RequestMethod object:
http://apollo89.com/java/spring-framework-2.5.3/api/org/springframework/web/bind/annotation/RequestMethod.html