Class AjaxManager

java.lang.Object
com.jalios.jcms.ajax.AjaxManager
All Implemented Interfaces:
Serializable

public class AjaxManager extends Object implements Serializable
See Also:
  • Field Details

  • Constructor Details

    • AjaxManager

      public AjaxManager()
  • Method Details

    • getInstance

      public static AjaxManager getInstance()
      Returns the singleton. Caution: This method is not thread-safe.
      Returns:
      the singleton.
      Since:
      jcms-6.0.0
    • getContext

      public JcmsJspAjaxContext getContext(String id, javax.servlet.http.HttpSession session)
      Returns the JcmsJspAjaxContext for the given request id.
      Parameters:
      id - the computed request id
      session - the HttpSession
      Returns:
      JcmsJspAjaxContext the Jcms Jsp Ajax Context
    • setContext

      public void setContext(String id, JcmsJspAjaxContext jjac, javax.servlet.http.HttpSession session)
      Internal method used by Ajax-Refresh to reset JcmsJspAjaxContext in session
      Parameters:
      id - the computed request id
      jjac - the JcmsJspAjaxContext to store
      session - the HttpSession
    • registerContext

      public void registerContext(JcmsJspContext ctxt)
      Register a JcmsJspAjaxContext for the given JcmsJspContext in the session. Then returns the stored key.
      Parameters:
      ctxt - the JcmsJspContext