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
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:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected com.opensymphony.webwork.dispatcher.json.JSONObject
buildResponse
(com.atlassian.struts.ValidationAware validationAware) doIntercept
(com.opensymphony.xwork2.ActionInvocation invocation) Methods inherited from class com.atlassian.bamboo.ww2.interceptors.AbstractBambooInterceptor
destroy, getParameter, getParameterAsInt, hasParameter, init, intercept
-
Field Details
-
VALIDATE_JSON_PARAM
- See Also:
-
-
Constructor Details
-
JSONValidationInterceptor
public JSONValidationInterceptor()
-
-
Method Details
-
doIntercept
- Specified by:
doIntercept
in 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
-