Package org.apache.struts2.interceptor.httpmethod


package org.apache.struts2.interceptor.httpmethod
  • Class
    Description
    Use this annotation to limit with what http method action or action's method can be called
    Use this annotation to allow call action or action's method via DELETE request only
    Use this annotation to allow call action or action's method via GET request only
    Use this annotation to allow call action or action's method via GET or POST request only
    Enum represents possible http request types
    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
    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.
    Use this annotation to allow call action or action's method via POST request only
    Use this annotation to allow call action or action's method via PUT request only