com.liferay.portal.action
Class JSONServiceAction
java.lang.Object
org.apache.struts.action.Action
com.liferay.portal.struts.JSONAction
com.liferay.portal.action.JSONServiceAction
- Direct Known Subclasses:
- JSONWebServiceServiceAction
public class JSONServiceAction
- extends JSONAction
Fields inherited from class org.apache.struts.action.Action |
defaultLocale, servlet |
Method Summary |
protected void |
checkMethodGuestAccess(javax.servlet.http.HttpServletRequest request,
String methodName,
String[] publicMethods)
|
protected Object |
getArgValue(javax.servlet.http.HttpServletRequest request,
Class<?> clazz,
String methodName,
String parameter,
Type parameterType)
|
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)
|
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 |
JSONServiceAction
public JSONServiceAction()
getJSON
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
- Specified by:
getJSON
in class JSONAction
- Throws:
Exception
checkMethodGuestAccess
protected void checkMethodGuestAccess(javax.servlet.http.HttpServletRequest request,
String methodName,
String[] publicMethods)
throws PrincipalException
- Throws:
PrincipalException
getArgValue
protected Object getArgValue(javax.servlet.http.HttpServletRequest request,
Class<?> clazz,
String methodName,
String parameter,
Type parameterType)
throws Exception
- Throws:
Exception
getMethodAndParameterTypes
protected Object[] getMethodAndParameterTypes(Class<?> clazz,
String methodName,
String[] parameters,
String[] parameterTypes)
throws Exception
- Throws:
Exception
getReroutePath
protected String getReroutePath()
- Overrides:
getReroutePath
in class JSONAction
getReturnValue
protected String getReturnValue(Object returnObj)
throws Exception
- Throws:
Exception
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)