Package com.atlassian.confluence.xwork
Class HttpMethodValidationInterceptor
- java.lang.Object
- 
- com.atlassian.xwork.interceptors.RestrictHttpMethodInterceptor
- 
- com.atlassian.confluence.xwork.HttpMethodValidationInterceptor
 
 
- 
- All Implemented Interfaces:
- com.opensymphony.xwork2.interceptor.Interceptor,- Serializable
 
 public class HttpMethodValidationInterceptor extends com.atlassian.xwork.interceptors.RestrictHttpMethodInterceptorInterceptor 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:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description HttpMethodValidationInterceptor()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.atlassian.xwork.HttpMethod[]getPermittedHttpMethods(com.opensymphony.xwork2.ActionInvocation invocation, Method invocationMethod)protected com.atlassian.xwork.interceptors.RestrictHttpMethodInterceptor.SecurityLevelgetSecurityLevel()
 
- 
- 
- 
Method Detail- 
getPermittedHttpMethodsprotected com.atlassian.xwork.HttpMethod[] getPermittedHttpMethods(com.opensymphony.xwork2.ActionInvocation invocation, Method invocationMethod)- Overrides:
- getPermittedHttpMethodsin class- com.atlassian.xwork.interceptors.RestrictHttpMethodInterceptor
 
 - 
getSecurityLevelprotected com.atlassian.xwork.interceptors.RestrictHttpMethodInterceptor.SecurityLevel getSecurityLevel() - Overrides:
- getSecurityLevelin class- com.atlassian.xwork.interceptors.RestrictHttpMethodInterceptor
 
 
- 
 
-