Class JSONServiceAction

Object
com.liferay.portal.struts.JSONAction
com.liferay.portal.action.JSONServiceAction
All Implemented Interfaces:
Action

public class JSONServiceAction extends JSONAction
Author:
Brian Wing Shun Chan, Karthik Sudarshan, Julio Camarero, Eduardo Lundgren
  • Constructor Details

    • JSONServiceAction

      public JSONServiceAction()
  • Method Details

    • getJSON

      public String getJSON(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws Exception
      Specified by:
      getJSON in class JSONAction
      Throws:
      Exception
    • getArgValue

      protected Object getArgValue(javax.servlet.http.HttpServletRequest httpServletRequest, Class<?> clazz, String methodName, String parameter, Type parameterType) throws Exception
      Throws:
      Exception
    • getCSRFOrigin

      protected String getCSRFOrigin(javax.servlet.http.HttpServletRequest httpServletRequest)
      Overrides:
      getCSRFOrigin in class JSONAction
      See Also:
      • com.liferay.portal.jsonwebservice.JSONWebServiceServiceAction#getCSRFOrigin(HttpServletRequest)
    • getMethodAndParameterTypes

      protected Object[] getMethodAndParameterTypes(Class<?> clazz, String methodName, String[] parameters, String[] parameterTypes) throws Exception
      Throws:
      Exception
    • getReroutePath

      protected String getReroutePath()
      Overrides:
      getReroutePath in class JSONAction
    • getReturnValue

      protected String getReturnValue(Object returnObject) throws Exception
      Throws:
      Exception
    • getStringArrayFromJSON

      protected String[] getStringArrayFromJSON(javax.servlet.http.HttpServletRequest httpServletRequest, String param) throws com.liferay.portal.kernel.json.JSONException
      Throws:
      com.liferay.portal.kernel.json.JSONException
    • getTypeNameOrClassDescriptor

      protected String getTypeNameOrClassDescriptor(Type type)
    • isValidRequest

      protected boolean isValidRequest(javax.servlet.http.HttpServletRequest httpServletRequest)