Package com.liferay.portal.action
Class JSONServiceAction
Object
com.liferay.portal.struts.JSONAction
com.liferay.portal.action.JSONServiceAction
- All Implemented Interfaces:
Action
- Author:
- Brian Wing Shun Chan, Karthik Sudarshan, Julio Camarero, Eduardo Lundgren
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
getArgValue
(javax.servlet.http.HttpServletRequest httpServletRequest, Class<?> clazz, String methodName, String parameter, Type parameterType) protected String
getCSRFOrigin
(javax.servlet.http.HttpServletRequest httpServletRequest) getJSON
(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) protected Object[]
getMethodAndParameterTypes
(Class<?> clazz, String methodName, String[] parameters, String[] parameterTypes) protected String
protected String
getReturnValue
(Object returnObject) protected String[]
getStringArrayFromJSON
(javax.servlet.http.HttpServletRequest httpServletRequest, String param) protected String
protected boolean
isValidRequest
(javax.servlet.http.HttpServletRequest httpServletRequest) Methods inherited from class com.liferay.portal.struts.JSONAction
checkAuthToken, execute, rerouteExecute, setServletContext
-
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 classJSONAction
- Throws:
Exception
-
getArgValue
protected Object getArgValue(javax.servlet.http.HttpServletRequest httpServletRequest, Class<?> clazz, String methodName, String parameter, Type parameterType) throws Exception - Throws:
Exception
-
getCSRFOrigin
- Overrides:
getCSRFOrigin
in classJSONAction
- 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
- Overrides:
getReroutePath
in classJSONAction
-
getReturnValue
- 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
-
isValidRequest
protected boolean isValidRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
-