www.element4solution.com

e4s.application.sysmodule.ajax
Class E4ModuleAjaxDispacher

java.lang.Object
  extended by e4s.util.E4Object
      extended by e4s.html.E4HtmlObject
          extended by e4s.servlet.E4ModuleImplementation
              extended by e4s.application.sysmodule.ajax.E4ModuleAjaxDispacher

public class E4ModuleAjaxDispacher
extends E4ModuleImplementation

This module dispaches E4Ajax requests to the E4AjaxData_Intf implementations. Each implementation is collected in a E4AjaxDataRepository object which is hold as session-object (E4ServletImplementation_Intf.getSessionObject(String).

See Also:
e4s.html.AjaxElement#setMethodDispacher(e4s.html.E4Method), e4s.html.AjaxElement#getMethodDispacher(), e4s.html.AjaxElement, E4AjaxData_Intf, E4AjaxDataRepository

Field Summary
static E4MethodSilent getAjaxData
           
static java.lang.String PARAM_DATA
           
static java.lang.String SESS_OBJ_TRACE_AJAX
           
 
Fields inherited from class e4s.html.E4HtmlObject
m_parent_e4sID
 
Fields inherited from class e4s.util.E4Object
CRLF, E4S_CORE_SYSTEM_LANGUAGE, NBSP, NULLSTR, URL_ENCODING_CHARSET
 
Constructor Summary
E4ModuleAjaxDispacher()
           
 
Method Summary
static java.lang.String _getSVNVersionString()
           
 void getAjaxData(HTML html, E4CgiParams params)
           
static E4AjaxData_Intf getData(E4ServletImplementation_Intf servlet, E4CgiParams params)
           
static E4AjaxData_Intf getData(E4ServletImplementation_Intf servlet, java.lang.String id)
           
 E4AjaxData_Intf getData(java.lang.String id)
           
 E4AjaxDataRepository getDataRepository()
           
static E4AjaxDataRepository getDataRepository(E4ServletImplementation_Intf servlet)
           
static E4StringBufferHtml removeHtmlRemarks(E4StringBufferHtml buf)
           
static void setAjaxTrace(E4ServletImplementation_Intf servlet, boolean mode)
          This function can be used to force ajax output beeing written into a html file which is under the directory E4Client.getRootPathAbsolute() /temp/ajaxtrace.
 
Methods inherited from class e4s.servlet.E4ModuleImplementation
canDo, canDo, canRun, closeHtmlOutput, empty2nbsp, empty2nbsp, getApplication_Permissions, getApplication, getApplObj, getClient, getClientImage, getClientObject, getClientObject, getClientObject, getClientValue, getClientValueBool, getClientValueDate, getClientValueFloat, getClientValueInt, getClientValueLong, getCookie, getCookieArr, getCookieBool, getCookieDate, getCookieLong, getCountryCode, getCSS, getDateFormat, getDbConnection, getDecimalSign, getE4ClientLogo, getE4S_Permissions, getLanguage_App, getLanguage_Sys, getLanguage, getParameters, getPersistantParameter, getPersistantParameterBoolean, getPersistantParameterDate, getPersistantParameterInt, getPersistantParameterIntArr, getPersistantParameterLong, getPickParams, getRemoteAddr, getRequiredModulePermission, getServlet, getSession, getSessionId, getSessionObject_Boolean, getSessionObject_Long, getSessionObject_String, getSessionObject, getSessionObject, getSessionObjects, getTimeFormat, getTimeZone, getUrl, getUserEmail, getUserValue, getUserValue, getUserValueArr, getUserValueBool, getUserValueBool, getUserValueDate, getUserValueDate, getUserValueInt, getUserValueInt, getUserValueLong, getUserValueLong, isok, isPersistant, isRunningWindow, isTimeout, ok, openHtmlOutput, removeApplicationObject, removeClientObject, removeClientObject, removeClientObject, removeClientValue, removeSessionObject, removeSessionObject, removeUserValue, removeUserValue, resetClientLogo, setAjaxTrace, setApplication, setApplicationObject, setClientObject, setClientObject, setClientObject, setClientValue, setClientValue, setClientValue, setClientValue, setClientValue, setClientValue, setClientValue, setCookie, setCookie, setCookie, setCookie, setCookie, setCookie, setCookie, setCookie, setPersistantParameter, setPersistantParameter, setPersistantParameter, setPersistantParameter, setPersistantParameter, setPersistantParameter, setServlet, setSessionObject, setSessionObject, setSessionObject, setSessionObject, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, SystemError, write, write, write, write, write, writeln, writeln, writeln, writeln
 
Methods inherited from class e4s.html.E4HtmlObject
E4ID, E4ID, set_e4sID
 
Methods inherited from class e4s.util.E4Object
Calendar, CName, CName, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelSys, E4LabelSys, e4sCopyright, e4sVersion, encode, encode, encode, encodeHtml, encodeHtml, encodeHtml, encodeURL, encodeURL, encodeURL, finalize, getLINE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTraceMemory, HtmlEncode, HtmlEncode, HtmlEncode, isdecimal, isdigit, isnotok, isnotok, isnumeric, isok, isok, isok, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingStack, mkdirs, null2nbsp, null2nbsp, null2nbsp, ok, ok, ok, outPrintln, setLogFile4Trace, setTraceMemory, STACKTRACE, toDebug, toDouble, toFloat, toFloat, toString, TRACE_CALLS, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, wait
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

getAjaxData

public static E4MethodSilent getAjaxData

SESS_OBJ_TRACE_AJAX

public static final java.lang.String SESS_OBJ_TRACE_AJAX
See Also:
Constant Field Values

PARAM_DATA

public static final java.lang.String PARAM_DATA
See Also:
Constant Field Values
Constructor Detail

E4ModuleAjaxDispacher

public E4ModuleAjaxDispacher()
Method Detail

setAjaxTrace

public static void setAjaxTrace(E4ServletImplementation_Intf servlet,
                                boolean mode)
This function can be used to force ajax output beeing written into a html file which is under the directory E4Client.getRootPathAbsolute() /temp/ajaxtrace. It will be enabled or disabled for the current session only.

Parameters:
servlet - a valid E4ServletImplementation_Servlet context
mode - true to enable trace, false to disable trace
See Also:
E4ModuleImplementation.setAjaxTrace(boolean), #isAjaxTrace()

getAjaxData

public void getAjaxData(HTML html,
                        E4CgiParams params)
                 throws java.lang.Exception
Throws:
java.lang.Exception

removeHtmlRemarks

public static E4StringBufferHtml removeHtmlRemarks(E4StringBufferHtml buf)

getData

public E4AjaxData_Intf getData(java.lang.String id)

getData

public static E4AjaxData_Intf getData(E4ServletImplementation_Intf servlet,
                                      java.lang.String id)

getData

public static E4AjaxData_Intf getData(E4ServletImplementation_Intf servlet,
                                      E4CgiParams params)
                               throws java.lang.Exception
Throws:
java.lang.Exception

getDataRepository

public E4AjaxDataRepository getDataRepository()

getDataRepository

public static E4AjaxDataRepository getDataRepository(E4ServletImplementation_Intf servlet)

_getSVNVersionString

public static java.lang.String _getSVNVersionString()

www.element4solution.com