Liferay 6.2-ce-ga5

com.liferay.portal.action
Class JSONServiceAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by com.liferay.portal.struts.JSONAction
          extended by com.liferay.portal.action.JSONServiceAction
Direct Known Subclasses:
JSONWebServiceServiceAction

public class JSONServiceAction
extends JSONAction


Field Summary
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
JSONServiceAction()
           
 
Method Summary
protected  Object getArgValue(javax.servlet.http.HttpServletRequest request, Class<?> clazz, String methodName, String parameter, Type parameterType)
           
protected  String getCSRFOrigin(javax.servlet.http.HttpServletRequest request)
           
 String getJSON(org.apache.struts.action.ActionMapping actionMapping, org.apache.struts.action.ActionForm actionForm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  Object[] getMethodAndParameterTypes(Class<?> clazz, String methodName, String[] parameters, String[] parameterTypes)
           
protected  String getReroutePath()
           
protected  String getReturnValue(Object returnObj)
           
protected  String[] getStringArrayFromJSON(javax.servlet.http.HttpServletRequest request, String param)
           
protected  String getTypeNameOrClassDescriptor(Type type)
           
protected  boolean isValidRequest(javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class com.liferay.portal.struts.JSONAction
checkAuthToken, execute, rerouteExecute, setServletContext
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONServiceAction

public JSONServiceAction()
Method Detail

getJSON

public String getJSON(org.apache.struts.action.ActionMapping actionMapping,
                      org.apache.struts.action.ActionForm actionForm,
                      javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws Exception
Specified by:
getJSON in class JSONAction
Throws:
Exception

getArgValue

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

getCSRFOrigin

protected String getCSRFOrigin(javax.servlet.http.HttpServletRequest request)
Overrides:
getCSRFOrigin in class JSONAction
See Also:
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 returnObj)
                         throws Exception
Throws:
Exception

getStringArrayFromJSON

protected String[] getStringArrayFromJSON(javax.servlet.http.HttpServletRequest request,
                                          String param)
                                   throws JSONException
Throws:
JSONException

getTypeNameOrClassDescriptor

protected String getTypeNameOrClassDescriptor(Type type)

isValidRequest

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

Liferay 6.2-ce-ga5