com.liferay.portal.struts
Class JSONAction
java.lang.Object
org.apache.struts.action.Action
com.liferay.portal.struts.JSONAction
- Direct Known Subclasses:
- EditLayoutAction, GetCategoriesAction, GetLayoutsAction, JSONServiceAction, RateEntryAction, UpdateLayoutAction, UpdatePortletTitleAction
public abstract class JSONAction
- extends org.apache.struts.action.Action
| Fields inherited from class org.apache.struts.action.Action |
servlet |
|
Method Summary |
protected void |
checkAuthToken(javax.servlet.http.HttpServletRequest request)
|
org.apache.struts.action.ActionForward |
execute(org.apache.struts.action.ActionMapping actionMapping,
org.apache.struts.action.ActionForm actionForm,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
protected String |
getCSRFOrigin(javax.servlet.http.HttpServletRequest request)
|
abstract 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 String |
getReroutePath()
|
protected boolean |
rerouteExecute(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
void |
setServletContext(javax.servlet.ServletContext servletContext)
|
| Methods inherited from class org.apache.struts.action.Action |
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, 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 |
JSONAction
public JSONAction()
execute
public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping actionMapping,
org.apache.struts.action.ActionForm actionForm,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
- Overrides:
execute in class org.apache.struts.action.Action
- Throws:
Exception
getJSON
public abstract 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
- Throws:
Exception
setServletContext
public void setServletContext(javax.servlet.ServletContext servletContext)
checkAuthToken
protected void checkAuthToken(javax.servlet.http.HttpServletRequest request)
throws PortalException
- Throws:
PortalException
getCSRFOrigin
protected String getCSRFOrigin(javax.servlet.http.HttpServletRequest request)
getReroutePath
protected String getReroutePath()
rerouteExecute
protected boolean rerouteExecute(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
- Throws:
Exception