It appears that Java EE 6 added the HTTP method names as constants to the javax.ws.rs.HttpMethod annotation interface. Depending on your setup, they may be available to you.
http://docs.oracle.com/javaee/6/api/javax/ws/rs/HttpMethod.html
More Related Contents:
- How do servlets work? Instantiation, sessions, shared variables and multithreading
- doGet and doPost in Servlets
- ContextLoaderListener or not?
- Get the POST request body from HttpServletRequest
- Sharing session data between contexts in Tomcat
- Mapping a specific servlet to be the default servlet in Tomcat
- HttpServletRequest – setCharacterEncoding seems to do nothing
- Accessing post variables using Java Servlets
- Session is lost and created as new in every servlet request
- Retrieving servlet context, session and request in a POJO outside container
- How to check a uploaded file whether it is an image or other file?
- SessionTimeout: web.xml vs session.maxInactiveInterval()
- Java HttpServletRequest get URL in browsers URL bar
- Spring – Injecting a dependency into a ServletContextListener
- How can I read an HttpServletReponses output stream?
- java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest
- How do I include a JSP file from a different project into my project
- How do I get a list of all HttpSession objects in a web application?
- Displaying pdf in jsp
- HttpServletResponse sendRedirect permanent
- How to get host name with port from a http or https request
- Prevent multiple login using the same user name and password
- How can I know if the request to the servlet was executed using HTTP or HTTPS?
- How to store a file on a server(web container) through a Java EE web application?
- Return a stream with Spring MVC’s ResponseEntity
- Maven archetype for simple Servlet application
- Differences between ServletResponse and HttpServletResponseWrapper?
- Lightweight servlet engine for serving java application via IIS
- Servlet redirect to same page with error message
- Why do we use web.xml? [closed]