com.atlassian.bamboo.ww2.interceptors
Class JSONValidationInterceptor
java.lang.Object
com.atlassian.bamboo.ww2.interceptors.JSONValidationInterceptor
- All Implemented Interfaces:
- com.opensymphony.xwork.interceptor.Interceptor, java.io.Serializable
public class JSONValidationInterceptor
- extends java.lang.Object
- implements com.opensymphony.xwork.interceptor.Interceptor
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)
|
void |
destroy()
|
void |
init()
|
java.lang.String |
intercept(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()
init
public void init()
- Specified by:
init
in interface com.opensymphony.xwork.interceptor.Interceptor
destroy
public void destroy()
- Specified by:
destroy
in interface com.opensymphony.xwork.interceptor.Interceptor
intercept
public java.lang.String intercept(com.opensymphony.xwork.ActionInvocation invocation)
throws java.lang.Exception
- Specified by:
intercept
in interface com.opensymphony.xwork.interceptor.Interceptor
- 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 © 2010 Atlassian. All Rights Reserved.