public abstract class JSONAction extends Object implements Action
| Constructor and Description |
|---|
JSONAction() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkAuthToken(javax.servlet.http.HttpServletRequest request) |
ActionForward |
execute(ActionMapping actionMapping,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected String |
getCSRFOrigin(javax.servlet.http.HttpServletRequest request) |
abstract String |
getJSON(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) |
public ActionForward execute(ActionMapping actionMapping, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
public abstract String getJSON(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
Exceptionpublic void setServletContext(javax.servlet.ServletContext servletContext)
protected void checkAuthToken(javax.servlet.http.HttpServletRequest request)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected String getCSRFOrigin(javax.servlet.http.HttpServletRequest request)
protected String getReroutePath()
protected boolean rerouteExecute(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
Exception