com.jalios.jcms.ajax
Class AjaxManager

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

public class AjaxManager
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
static String AJAX_CONTEXT_LRU_MAP
           
static int AJAX_CONTEXT_LRU_MAP_SIZE
           
 
Constructor Summary
AjaxManager()
           
 
Method Summary
 JcmsJspAjaxContext getContext(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(String id, JcmsJspAjaxContext jjac, javax.servlet.http.HttpSession session)
          Internal method used by Ajax-Refresh to reset JcmsJspAjaxContext in session
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AJAX_CONTEXT_LRU_MAP

public static final 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(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


Copyright © 2001-2010 Jalios SA. All Rights Reserved.