Package org.apache.struts2.interceptor.httpmethod
package org.apache.struts2.interceptor.httpmethod
-
ClassDescriptionUse this annotation to limit with what http method action or action's method can be calledUse this annotation to allow call action or action's method via DELETE request onlyUse this annotation to allow call action or action's method via GET request onlyUse this annotation to allow call action or action's method via GET or POST request onlyEnum represents possible http request typesAction 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 methodInterceptor 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 implementsHttpMethodAware
andHttpMethodAware.getBadRequestResultName()
returns non-null result name, thus value will be used instead.Use this annotation to allow call action or action's method via POST request onlyUse this annotation to allow call action or action's method via PUT request only