Class JSONAction

Object
com.liferay.portal.struts.JSONAction
All Implemented Interfaces:
Action
Direct Known Subclasses:
JSONServiceAction, RateEntryAction

public abstract class JSONAction extends Object implements Action
Author:
Ming-Gih Lam, Brian Wing Shun Chan, Tomas Polesovsky
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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
      Specified by:
      execute in interface Action
      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

      protected String getCSRFOrigin(javax.servlet.http.HttpServletRequest httpServletRequest)
    • getReroutePath

      protected String getReroutePath()
    • rerouteExecute

      protected boolean rerouteExecute(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws Exception
      Throws:
      Exception