Package com.jalios.jcms.ajax
Class AjaxManager
- java.lang.Object
-
- com.jalios.jcms.ajax.AjaxManager
-
- All Implemented Interfaces:
java.io.Serializable
public class AjaxManager extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
AJAX_CONTEXT_LRU_MAP
static int
AJAX_CONTEXT_LRU_MAP_SIZE
-
Constructor Summary
Constructors Constructor Description AjaxManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JcmsJspAjaxContext
getContext(java.lang.String id, javax.servlet.http.HttpSession session)
Returns the JcmsJspAjaxContext for the given request id.static AjaxManager
getInstance()
Returns the singleton.void
registerContext(JcmsJspContext ctxt)
Register a JcmsJspAjaxContext for the given JcmsJspContext in the session.void
setContext(java.lang.String id, JcmsJspAjaxContext jjac, javax.servlet.http.HttpSession session)
Internal method used by Ajax-Refresh to reset JcmsJspAjaxContext in session
-
-
-
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
-
-
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 idsession
- 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 idjjac
- the JcmsJspAjaxContext to storesession
- 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
-
-