# Package org.apache.struts2.interceptor.httpmethod

- Interface Summary
  Interface | Description
  --- | ---
  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

- Class Summary
  Class | Description
  --- | ---
  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.

- Enum Summary
  Enum | Description
  --- | ---
  HttpMethod | Enum represents possible http request types

- Annotation Types Summary
  Annotation Type | 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
  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

Copyright © 2000–2026 Apache Software Foundation. All rights reserved.