public class JSONServiceAction extends JSONAction
Constructor and Description |
---|
JSONServiceAction() |
Modifier and Type | Method and Description |
---|---|
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) |
checkAuthToken, execute, rerouteExecute, setServletContext
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
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
getJSON
in class JSONAction
Exception
protected Object getArgValue(javax.servlet.http.HttpServletRequest request, Class<?> clazz, String methodName, String parameter, Type parameterType) throws Exception
Exception
protected String getCSRFOrigin(javax.servlet.http.HttpServletRequest request)
getCSRFOrigin
in class JSONAction
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 returnObj) throws Exception
Exception
protected String[] getStringArrayFromJSON(javax.servlet.http.HttpServletRequest request, 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 request)