RequestMapping#method() attribute of the RequestMapping annotation.
Note that, by default, org.
supports GET, HEAD, POST, PUT, PATCH, 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.
RequestMapping, org.springframework.web.servlet.DispatcherServlet#setDispatchOptionsRequest , org.springframework.web.servlet.DispatcherServlet#setDispatchTraceRequest
| Modifier and Type | Field and Description |
|---|---|
| public static final RequestMethod | |
| public static final RequestMethod | |
| public static final RequestMethod | |
| public static final RequestMethod | |
| public static final RequestMethod | |
| public static final RequestMethod | |
| public static final RequestMethod | |
| public static final RequestMethod |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public HttpMethod | Returns: the http method for this request methodReturn the |
| public static RequestMethod | |
| public static RequestMethod | Returns: the correspondingRequestMethod, or null if not foundthe http method object httpMethod)Resolve the given |
| public static RequestMethod | |
| public static RequestMethod[] |
| DELETE | back to summary |
|---|---|
| public static final RequestMethod DELETE | |
| GET | back to summary |
|---|---|
| public static final RequestMethod GET | |
| HEAD | back to summary |
|---|---|
| public static final RequestMethod HEAD | |
| OPTIONS | back to summary |
|---|---|
| public static final RequestMethod OPTIONS | |
| PATCH | back to summary |
|---|---|
| public static final RequestMethod PATCH | |
| POST | back to summary |
|---|---|
| public static final RequestMethod POST | |
| PUT | back to summary |
|---|---|
| public static final RequestMethod PUT | |
| TRACE | back to summary |
|---|---|
| public static final RequestMethod TRACE | |
| RequestMethod | back to summary |
|---|---|
| private RequestMethod() | |
| asHttpMethod | back to summary |
|---|---|
| public HttpMethod asHttpMethod() Return the
| |
| resolve | back to summary |
|---|---|
| public static RequestMethod resolve(String method) Resolve the given method value to an
| |
| resolve | back to summary |
|---|---|
| public static RequestMethod resolve(HttpMethod httpMethod) Resolve the given
| |
| valueOf | back to summary |
|---|---|
| public static RequestMethod valueOf(String name) | |
| values | back to summary |
|---|---|
| public static RequestMethod[] values() | |