Class JSONValidationInterceptor
- java.lang.Object
-
- com.atlassian.bamboo.ww2.interceptors.AbstractBambooInterceptor
-
- com.atlassian.bamboo.ww2.interceptors.JSONValidationInterceptor
-
- All Implemented Interfaces:
com.opensymphony.xwork2.interceptor.Interceptor,Serializable
public class JSONValidationInterceptor extends AbstractBambooInterceptor
Taken from xwork 2.1.2 See {@linkplain http://struts.apache.org/2.1.2/struts2-core/apidocs/org/apache/struts2/interceptor/validation/JSONValidationInterceptor.html}- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringVALIDATE_JSON_PARAM
-
Constructor Summary
Constructors Constructor Description JSONValidationInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.opensymphony.webwork.dispatcher.json.JSONObjectbuildResponse(com.atlassian.struts.ValidationAware validationAware)StringdoIntercept(com.opensymphony.xwork2.ActionInvocation invocation)-
Methods inherited from class com.atlassian.bamboo.ww2.interceptors.AbstractBambooInterceptor
destroy, getParameter, getParameterAsInt, hasParameter, init, intercept
-
-
-
-
Field Detail
-
VALIDATE_JSON_PARAM
public static final String VALIDATE_JSON_PARAM
- See Also:
- Constant Field Values
-
-
Method Detail
-
doIntercept
public String doIntercept(com.opensymphony.xwork2.ActionInvocation invocation) throws Exception
- Specified by:
doInterceptin classAbstractBambooInterceptor- Throws:
Exception
-
buildResponse
protected com.opensymphony.webwork.dispatcher.json.JSONObject buildResponse(com.atlassian.struts.ValidationAware validationAware) throws com.opensymphony.webwork.dispatcher.json.JSONException- Returns:
- JSON string that contains the errors and field errors
- Throws:
com.opensymphony.webwork.dispatcher.json.JSONException
-
-