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

public class JSONValidationInterceptor extends AbstractBambooInterceptor
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:
  • Field Details

  • Constructor Details

    • JSONValidationInterceptor

      public JSONValidationInterceptor()
  • Method Details

    • 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