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
,org.apache.struts2.interceptor.Interceptor
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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.opensymphony.xwork2.interceptor.Interceptor
com.opensymphony.xwork2.interceptor.Interceptor.LegacyAdapter
-
Field Summary
Fields -
Constructor Summary
Constructors -
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.opensymphony.xwork2.interceptor.Interceptor
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
-