Package com.jalios.jcms.ajax
Class AjaxManager
java.lang.Object
com.jalios.jcms.ajax.AjaxManager
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetContext(String id, javax.servlet.http.HttpSession session) Returns the JcmsJspAjaxContext for the given request id.static AjaxManagerReturns the singleton.voidRegister a JcmsJspAjaxContext for the given JcmsJspContext in the session.voidsetContext(String id, JcmsJspAjaxContext jjac, javax.servlet.http.HttpSession session) Internal method used by Ajax-Refresh to reset JcmsJspAjaxContext in session
-
Field Details
-
AJAX_CONTEXT_LRU_MAP
- See Also:
-
AJAX_CONTEXT_LRU_MAP_SIZE
public static final int AJAX_CONTEXT_LRU_MAP_SIZE- See Also:
-
-
Constructor Details
-
AjaxManager
public AjaxManager()
-
-
Method Details
-
getInstance
Returns the singleton. Caution: This method is not thread-safe.- Returns:
- the singleton.
- Since:
- jcms-6.0.0
-
getContext
Returns the JcmsJspAjaxContext for the given request id.- Parameters:
id- the computed request idsession- the HttpSession- Returns:
- JcmsJspAjaxContext the Jcms Jsp Ajax Context
-
setContext
Internal method used by Ajax-Refresh to reset JcmsJspAjaxContext in session- Parameters:
id- the computed request idjjac- the JcmsJspAjaxContext to storesession- the HttpSession
-
registerContext
Register a JcmsJspAjaxContext for the given JcmsJspContext in the session. Then returns the stored key.- Parameters:
ctxt- the JcmsJspContext
-