Liferay 6.0.5

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

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<?> classObj, String methodName, String parameter, Type parameterType)
           
 String getJSON(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  Object[] getMethodAndParameterTypes(Class<?> classObj, String methodName, String[] parameters, String[] parameterTypes)
           
protected  String getReturnValue(AssetEntryDisplay assetEntryDisplay)
           
protected  String getReturnValue(AssetEntryDisplay[] assetEntryDisplays)
           
protected  String getReturnValue(AssetEntryType assetEntryType)
           
protected  String getReturnValue(AssetEntryType[] assetEntryTypes)
           
protected  String getReturnValue(Object returnObj, Class<?> returnType)
           
protected  String getSerializerClassName(Object obj)
           
protected  String[] getStringArrayFromJSON(javax.servlet.http.HttpServletRequest request, String param)
           
protected  String getTypeNameOrClassDescriptor(Type type)
           
protected  boolean isValidRequest(javax.servlet.http.HttpServletRequest request)
           
protected  JSONObject toJSONObject(AssetEntryDisplay assetEntryDisplay)
           
protected  JSONObject toJSONObject(AssetEntryType assetEntryType)
           
 
Methods inherited from class com.liferay.portal.struts.JSONAction
execute
 
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 mapping,
                      org.apache.struts.action.ActionForm form,
                      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<?> classObj,
                             String methodName,
                             String parameter,
                             Type parameterType)
                      throws Exception
Throws:
Exception

getMethodAndParameterTypes

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

getReturnValue

protected String getReturnValue(AssetEntryDisplay assetEntryDisplay)
                         throws Exception
Throws:
Exception

getReturnValue

protected String getReturnValue(AssetEntryDisplay[] assetEntryDisplays)
                         throws Exception
Throws:
Exception

getReturnValue

protected String getReturnValue(AssetEntryType assetEntryType)
                         throws Exception
Throws:
Exception

getReturnValue

protected String getReturnValue(AssetEntryType[] assetEntryTypes)
                         throws Exception
Throws:
Exception

getReturnValue

protected String getReturnValue(Object returnObj,
                                Class<?> returnType)
                         throws Exception
Throws:
Exception

getSerializerClassName

protected String getSerializerClassName(Object obj)

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)

toJSONObject

protected JSONObject toJSONObject(AssetEntryDisplay assetEntryDisplay)

toJSONObject

protected JSONObject toJSONObject(AssetEntryType assetEntryType)

Liferay 6.0.5