Package com.liferay.portal.struts
Class JSONAction
Object
com.liferay.portal.struts.JSONAction
- All Implemented Interfaces:
Action
- Direct Known Subclasses:
JSONServiceAction
,RateEntryAction
- Author:
- Ming-Gih Lam, Brian Wing Shun Chan, Tomas Polesovsky
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkAuthToken
(javax.servlet.http.HttpServletRequest httpServletRequest) execute
(ActionMapping actionMapping, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) protected String
getCSRFOrigin
(javax.servlet.http.HttpServletRequest httpServletRequest) abstract String
getJSON
(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) protected String
protected boolean
rerouteExecute
(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) void
setServletContext
(javax.servlet.ServletContext servletContext)
-
Constructor Details
-
JSONAction
public JSONAction()
-
-
Method Details
-
execute
public ActionForward execute(ActionMapping actionMapping, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws Exception -
getJSON
public abstract String getJSON(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws Exception - Throws:
Exception
-
setServletContext
public void setServletContext(javax.servlet.ServletContext servletContext) -
checkAuthToken
protected void checkAuthToken(javax.servlet.http.HttpServletRequest httpServletRequest) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCSRFOrigin
-
getReroutePath
-
rerouteExecute
protected boolean rerouteExecute(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws Exception - Throws:
Exception
-