Class AjaxManager

  • All Implemented Interfaces:
    java.io.Serializable

    public class AjaxManager
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Field Detail

      • AJAX_CONTEXT_LRU_MAP

        public static final java.lang.String AJAX_CONTEXT_LRU_MAP
        See Also:
        Constant Field Values
      • AJAX_CONTEXT_LRU_MAP_SIZE

        public static final int AJAX_CONTEXT_LRU_MAP_SIZE
        See Also:
        Constant Field Values
    • Constructor Detail

      • AjaxManager

        public AjaxManager()
    • Method Detail

      • 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​(java.lang.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​(java.lang.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