com.atlassian.bamboo.ww2.interceptors
Class JSONValidationInterceptor

java.lang.Object
  extended by com.atlassian.bamboo.ww2.interceptors.AbstractBambooInterceptor
      extended by 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

Field Summary
static java.lang.String VALIDATE_JSON_PARAM
           
 
Constructor Summary
JSONValidationInterceptor()
           
 
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 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
 

Field Detail

VALIDATE_JSON_PARAM

public static final java.lang.String VALIDATE_JSON_PARAM
See Also:
Constant Field Values
Constructor Detail

JSONValidationInterceptor

public JSONValidationInterceptor()
Method Detail

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.