public final enum

RequestMethod

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ org.springframework.web.bind.annotation.RequestMethod

Class Overview

Java 5 enumeration of HTTP request methods. Intended for use with the RequestMapping#method() attribute of the RequestMapping annotation.

Note that, by default, DispatcherServlet supports GET, HEAD, POST, PUT and DELETE only. DispatcherServlet will process TRACE and OPTIONS with the default HttpServlet behavior unless explicitly told to dispatch those request types as well: Check out the "dispatchOptionsRequest" and "dispatchTraceRequest" properties, switching them to "true" if necessary.

Summary

Enum Values
RequestMethod  DELETE   
RequestMethod  GET   
RequestMethod  HEAD   
RequestMethod  OPTIONS   
RequestMethod  POST   
RequestMethod  PUT   
RequestMethod  TRACE   
Public Methods
static RequestMethod valueOf(String name)
final static RequestMethod[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final RequestMethod DELETE

public static final RequestMethod GET

public static final RequestMethod HEAD

public static final RequestMethod OPTIONS

public static final RequestMethod POST

public static final RequestMethod PUT

public static final RequestMethod TRACE

Public Methods

public static RequestMethod valueOf (String name)

public static final RequestMethod[] values ()