com.atlassian.bamboo.ww2.interceptors
Class JSONValidationInterceptor
java.lang.Object
com.atlassian.bamboo.ww2.interceptors.AbstractBambooInterceptor
com.atlassian.bamboo.ww2.interceptors.JSONValidationInterceptor
- All Implemented Interfaces:
- com.opensymphony.xwork.interceptor.Interceptor, java.io.Serializable
public class JSONValidationInterceptor
- extends AbstractBambooInterceptor
Taken from xwork 2.1.2 See http://struts.apache.org/2.1.2/struts2-core/apidocs/org/apache/struts2/interceptor/validation/JSONValidationInterceptor.html
- See Also:
- Serialized Form
Method Summary |
protected com.opensymphony.webwork.dispatcher.json.JSONObject |
buildResponse(com.opensymphony.xwork.ValidationAware validationAware)
|
java.lang.String |
doIntercept(com.opensymphony.xwork.ActionInvocation invocation)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VALIDATE_JSON_PARAM
public static final java.lang.String VALIDATE_JSON_PARAM
- See Also:
- Constant Field Values
JSONValidationInterceptor
public JSONValidationInterceptor()
doIntercept
public java.lang.String doIntercept(com.opensymphony.xwork.ActionInvocation invocation)
throws java.lang.Exception
- Specified by:
doIntercept
in class AbstractBambooInterceptor
- Throws:
java.lang.Exception
buildResponse
protected com.opensymphony.webwork.dispatcher.json.JSONObject buildResponse(com.opensymphony.xwork.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
Copyright © 2012 Atlassian. All Rights Reserved.