# Package org.apache.struts2.interceptor.httpmethod

package org.apache.struts2.interceptor.httpmethod

- Related Packages
  Package
  Description
  org.apache.struts2.interceptor
  Interceptor classes.
- Class
  Description
  AllowedHttpMethod
  Use this annotation to limit with what http method action or action's method can be called
  HttpDelete
  Use this annotation to allow call action or action's method via DELETE request only
  HttpGet
  Use this annotation to allow call action or action's method via GET request only
  HttpGetOrPost
  Use this annotation to allow call action or action's method via GET or POST request only
  HttpMethod
  Enum represents possible http request types
  HttpMethodAware
  Action when implements this interface is notified about what method was used to perform request, it works in connection with `HttpMethodInterceptor` Another function of this interface is to return result, which should be returned when action was called with wrong http method
  HttpMethodInterceptor
  Interceptor is used to control with what http methods action can be called, if request with not allowed method was performed, `HttpMethodInterceptor.badRequestResultName` will be returned or if action implements `HttpMethodAware` and `HttpMethodAware.getBadRequestResultName()` returns non-null result name, thus value will be used instead.
  HttpPost
  Use this annotation to allow call action or action's method via POST request only
  HttpPut
  Use this annotation to allow call action or action's method via PUT request only