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, setServletContext
public String getJSON(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws Exception
getJSON
in class JSONAction
Exception
protected Object getArgValue(javax.servlet.http.HttpServletRequest httpServletRequest, Class<?> clazz, String methodName, String parameter, Type parameterType) throws Exception
Exception
protected String getCSRFOrigin(javax.servlet.http.HttpServletRequest httpServletRequest)
getCSRFOrigin
in class JSONAction
com.liferay.portal.jsonwebservice.JSONWebServiceServiceAction#getCSRFOrigin(
HttpServletRequest)
protected Object[] getMethodAndParameterTypes(Class<?> clazz, String methodName, String[] parameters, String[] parameterTypes) throws Exception
Exception
protected String getReroutePath()
getReroutePath
in class JSONAction
protected String getReturnValue(Object returnObject) throws Exception
Exception
protected String[] getStringArrayFromJSON(javax.servlet.http.HttpServletRequest httpServletRequest, String param) throws com.liferay.portal.kernel.json.JSONException
com.liferay.portal.kernel.json.JSONException
protected String getTypeNameOrClassDescriptor(Type type)
protected boolean isValidRequest(javax.servlet.http.HttpServletRequest httpServletRequest)