public class JSONServiceAction extends JSONAction
| Constructor and Description |
|---|
JSONServiceAction() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
getArgValue(javax.servlet.http.HttpServletRequest httpServletRequest,
Class<?> clazz,
String methodName,
String parameter,
Type parameterType) |
protected String |
getCSRFOrigin(javax.servlet.http.HttpServletRequest httpServletRequest) |
String |
getJSON(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse) |
protected Object[] |
getMethodAndParameterTypes(Class<?> clazz,
String methodName,
String[] parameters,
String[] parameterTypes) |
protected String |
getReroutePath() |
protected String |
getReturnValue(Object returnObject) |
protected String[] |
getStringArrayFromJSON(javax.servlet.http.HttpServletRequest httpServletRequest,
String param) |
protected String |
getTypeNameOrClassDescriptor(Type type) |
protected boolean |
isValidRequest(javax.servlet.http.HttpServletRequest httpServletRequest) |
checkAuthToken, execute, rerouteExecute, setServletContextpublic String getJSON(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
throws Exception
getJSON in class JSONActionExceptionprotected Object getArgValue(javax.servlet.http.HttpServletRequest httpServletRequest,
Class<?> clazz,
String methodName,
String parameter,
Type parameterType)
throws Exception
Exceptionprotected String getCSRFOrigin(javax.servlet.http.HttpServletRequest httpServletRequest)
getCSRFOrigin in class JSONActionJSONWebServiceServiceAction.getCSRFOrigin(
HttpServletRequest)protected Object[] getMethodAndParameterTypes(Class<?> clazz,
String methodName,
String[] parameters,
String[] parameterTypes)
throws Exception
Exceptionprotected String getReroutePath()
getReroutePath in class JSONActionprotected String getReturnValue(Object returnObject)
throws Exception
Exceptionprotected String[] getStringArrayFromJSON(javax.servlet.http.HttpServletRequest httpServletRequest,
String param)
throws com.liferay.portal.kernel.json.JSONException
com.liferay.portal.kernel.json.JSONExceptionprotected String getTypeNameOrClassDescriptor(Type type)
protected boolean isValidRequest(javax.servlet.http.HttpServletRequest httpServletRequest)