Package com.atlassian.confluence.xwork
Class HttpMethodValidationInterceptor
java.lang.Object
com.atlassian.struts.interceptor.RestrictHttpMethodInterceptor
com.atlassian.xwork.interceptors.RestrictHttpMethodInterceptor
com.atlassian.confluence.struts.interceptor.HttpMethodValidationInterceptor
com.atlassian.confluence.xwork.HttpMethodValidationInterceptor
- All Implemented Interfaces:
com.opensymphony.xwork2.interceptor.Interceptor,Serializable,org.apache.struts2.interceptor.Interceptor
@Deprecated(forRemoval=true,
since="9.3")
public class HttpMethodValidationInterceptor
extends HttpMethodValidationInterceptor
Deprecated, for removal: This API element is subject to removal in a future version.
Interceptor that ensures that the action method gets executed within an HTTP request with the required HTTP method.
@HttpMethodRequired(HttpMethod.POST) public String doExecute() {
// Do something
return Action.SUCCESS;
}
If the Http method of the request doesn't match the method (or methods) listed in the annotation value,
the interceptor will not invoke the action method. It will instead return RestrictHttpMethodInterceptor.INVALID_METHOD_RESULT.
- Since:
- 4.2
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.xwork.interceptors.RestrictHttpMethodInterceptor
com.atlassian.xwork.interceptors.RestrictHttpMethodInterceptor.SecurityLevelNested classes/interfaces inherited from interface com.opensymphony.xwork2.interceptor.Interceptor
com.opensymphony.xwork2.interceptor.Interceptor.LegacyAdapter -
Field Summary
Fields inherited from class com.atlassian.struts.interceptor.RestrictHttpMethodInterceptor
INVALID_METHOD_RESULT, PERMITTED_METHODS_PARAM_NAME -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected com.atlassian.xwork.HttpMethod[]getPermittedHttpMethods(com.opensymphony.xwork2.ActionInvocation invocation, Method invocationMethod) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class com.atlassian.confluence.struts.interceptor.HttpMethodValidationInterceptor
getSecurityLevelMethods inherited from class com.atlassian.xwork.interceptors.RestrictHttpMethodInterceptor
getConfiguredSecurityLevel, getPermittedHttpMethods, intercept, interceptMethods inherited from class com.atlassian.struts.interceptor.RestrictHttpMethodInterceptor
destroy, initMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.struts2.interceptor.Interceptor
destroy, init
-
Constructor Details
-
HttpMethodValidationInterceptor
public HttpMethodValidationInterceptor()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getPermittedHttpMethods
protected com.atlassian.xwork.HttpMethod[] getPermittedHttpMethods(com.opensymphony.xwork2.ActionInvocation invocation, Method invocationMethod) Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getPermittedHttpMethodsin classcom.atlassian.xwork.interceptors.RestrictHttpMethodInterceptor
-
HttpMethodValidationInterceptorinstead.