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.xwork2.interceptor.Interceptor, 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 String VALIDATE_JSON_PARAM
           
 
Constructor Summary
JSONValidationInterceptor()
           
 
Method Summary
protected  com.opensymphony.webwork.dispatcher.json.JSONObject buildResponse(com.atlassian.struts.ValidationAware validationAware)
           
 String 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
 

Field Detail

VALIDATE_JSON_PARAM

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

JSONValidationInterceptor

public JSONValidationInterceptor()
Method Detail

doIntercept

public String doIntercept(com.opensymphony.xwork2.ActionInvocation invocation)
                   throws Exception
Specified by:
doIntercept in class AbstractBambooInterceptor
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


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.