www.element4solution.com

e4s.servlet
Class E4ServletImplementation_Applet

java.lang.Object
  extended by e4s.util.E4Object
      extended by e4s.servlet.E4ServletImplementation
          extended by e4s.servlet.E4ServletImplementation_Applet
All Implemented Interfaces:
E4ServletImplementation_Intf
Direct Known Subclasses:
E4ServletImplementation_Symbol

public class E4ServletImplementation_Applet
extends E4ServletImplementation
implements E4ServletImplementation_Intf

Implementation of the e4s when running local in a browser as applet. Alternate implementations are E4ServletImplementation_Servlet for server side applications and E4ServletImplementation_Symbol for PDA environments.

Since:
JDK 1.4
See Also:
E4ServletImplementation_Servlet, E4ServletImplementation_Symbol, e4s.runtime.E4Applet

Field Summary
protected static java.lang.String FILENAME_TODO
           
 
Fields inherited from class e4s.servlet.E4ServletImplementation
COOKIE_PREFIX, COOKIE_SEPERATOR, m_last_alias, m_last_mref
 
Fields inherited from class e4s.util.E4Object
CRLF, E4S_CORE_SYSTEM_LANGUAGE, NBSP, NULLSTR, URL_ENCODING_CHARSET
 
Fields inherited from interface e4s.servlet.E4ServletImplementation_Intf
PARAM_FUNCTION, PARAM_PRESERVED
 
Constructor Summary
E4ServletImplementation_Applet()
           
 
Method Summary
static java.lang.String _getSVNVersionString()
          Get version info string from subversion.
 void addParameter(java.lang.String paramname, java.lang.String val)
           
 void assignCSS(int level, CSS_Name name)
          Assign a E4CSS style to the current session.
 java.lang.String closeHtmlOutput()
           
 E4DocumentBase defaultE4DocumentBase()
           
 E4PersistantBase defaultPersistantBase()
           
 java.lang.String getCookie(java.lang.String name)
          Get value from a local cookie.
 CSS_Name getCSS(int level)
          Get the E4CSS style for the current session.
 java.text.SimpleDateFormat getDateFormat()
          Get the date format (depending on the current logged in user).
 java.text.SimpleDateFormat getDateTimeFormat()
           
 java.lang.String getHttpAddr()
          Empty Implementation.
 E4CgiParams getParameters()
          Collect the HTML (CGI) Parameters.
 java.lang.String getPersistantParameter(java.lang.String paramname)
          Get a user dependent parameter from the user value settings.
 int[] getPersistantParameterIntArr(java.lang.String paramname)
          Get a user dependent parameter from the user value settings.
static E4StringBufferHtml getPreserved_static(java.lang.String preservedId)
           
 E4StringBufferHtml getPreserved(java.lang.String preservedId)
          Get the buffer for the preserved element.
 HttpSession getSession()
          Get the servlet's session.
 java.lang.String getSessionId()
          Get the servlet's session.
 java.lang.Object getSessionObject(java.lang.String obj_id)
          Get a session object for the current user session.
 java.lang.Object getSessionObject(java.lang.String obj_id, boolean exception_not_found)
          Get a session object for the current user session.
 java.util.Hashtable getSessionObjects()
          Get a Hashtable containing all session objects.
 java.text.SimpleDateFormat getTimeFormat()
          Get the time format (depending on the current logged in user).
 java.lang.String getUrl()
          Get the URL of the servlet itself.
 void invalidateSession(boolean dummy)
          Empty Implementation.
 boolean invoceFunction()
           
 boolean invoceFunction(E4Method_Intf mref)
           
 HTML invoceFunctionHTML(E4Method_Intf mref)
           
 HTML invoceFunctionHTML(E4Method_Intf mref, E4CgiParams params)
           
static boolean isRunningClient_Microsoft()
          Check, if - in the case of an client application - Microsoft VM or Sun Java is running.
 boolean isRunningClient()
          Check, if the implementation of this interface is running in E4Client mode.
 boolean isRunningServer()
          Check, if the implementation of this interface is running in Server mode.
 void onExitTask()
          This function is called on exit of the current task.
 void openHtmlOutput()
           
 void rem(java.lang.String s)
           
 void removeSessionObject(E4SessionObject_Intf obj)
          Remove a session object for the current user session.
 void removeSessionObject(java.lang.String obj_id)
          Remove a session object for the current user session.
 void removeSessionObjects()
          Removes all session objects for the current session.
 void setCookie(java.lang.String name, java.lang.String val)
          Create a local cookie.
 void setPersistantParameter(java.lang.String paramname, java.lang.String paramvalue)
          Save a user dependent parameter in the user value settings.
 void setSessionObject(E4SessionObject_Intf obj)
          Set a session object for the current user session.
 void setSessionObject(java.lang.String obj_id, java.lang.Object obj)
          Set a session object for the current user session.
 void SystemError(E4DBException dbe)
           
 void SystemError(int errortype, java.lang.Throwable t, java.lang.String txt)
           
 void SystemError(java.io.IOException ioe)
           
 void SystemError(java.lang.String errormsg)
           
 void SystemError(java.lang.Throwable t)
           
 void write(E4HtmlElement element)
          Execute the E4HtmlElement_Intf.toHtml(e4s.util.E4StringBufferHtml, e4s.servlet.E4ServletImplementation_Intf) functions for this element and append the HTML content generated to the current output buffer.
 void write(java.lang.String s)
           
 void write(java.lang.StringBuffer s)
           
 void writeln(java.lang.String s)
           
 void writePreserved(java.lang.String id, E4HtmlElement_Intf element)
          Store any (typically frame) content for later output by the function writePreservedOut().
 boolean writePreservedOut()
          Process (write out) any prestored output.
 
Methods inherited from class e4s.servlet.E4ServletImplementation
getApplication, getApplObj, getClient, getClientObject, getClientObject, getClientObject, getClientValue, getClientValue, getClientValue, getClientValueBool, getClientValueBool, getClientValueDate, getClientValueDate, getClientValueFloat, getClientValueFloat, getClientValueInt, getClientValueInt, getClientValueLong, getClientValueLong, getCompany_Group, getCookieArr, getCookieBool, getCookieDate, getCookieLong, getCountryCode, getDecimalSign, getLanguage, getPickParams, getRemoteAddr, getSessionObject_Boolean, getSessionObject_Long, getSessionObject_String, getStartupTime, getTimeZone, getUser, getUserValue, getUserValueBool, getUserValueDate, getUserValueIDs, getUserValueInt, getUserValueLong, invoceFunctionHTML, isRunningWindow, removeApplicationObject, removeClientObject, removeClientObject, removeClientObject, removeClientObject, removeClientValue, removeClientValue, removeUserValue, sessionCanEditHints, sessionCanEditHints, sessionCanEditStyles, sessionCanEditStyles, sessionCanEditTranslations, sessionCanEditTranslations, setApplicationObject, setClientObject, setClientObject, setClientObject, setClientObject, setClientValue, setClientValue, setClientValue, setClientValue, setClientValue, setClientValue, setClientValue, setClientValue, setClientValue, setClientValue, setClientValue, setClientValue, setClientValue, setClientValue, setCookie, setCookie, setCookie, setCookie, setCookie, setCookie, setCookie, setSessionObject, setSessionObject, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue
 
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, isok, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingStack, mkdirs, null2nbsp, null2nbsp, null2nbsp, ok, 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
 
Methods inherited from interface e4s.servlet.E4ServletImplementation_Intf
getApplObj, getClient, getClientObject, getClientObject, getClientValue, getClientValueBool, getClientValueDate, getClientValueFloat, getClientValueInt, getClientValueLong, getCookieArr, getCookieBool, getCookieDate, getCookieLong, getCountryCode, getDecimalSign, getLanguage, getPickParams, getRemoteAddr, getSessionObject_Boolean, getSessionObject_Long, getSessionObject_String, getTimeZone, getUserValue, getUserValueBool, getUserValueDate, getUserValueInt, getUserValueLong, isRunningWindow, removeApplicationObject, removeClientObject, removeClientObject, removeClientObject, removeClientValue, removeUserValue, sessionCanEditHints, sessionCanEditHints, sessionCanEditStyles, sessionCanEditStyles, sessionCanEditTranslations, sessionCanEditTranslations, setApplicationObject, setClientObject, setClientObject, setClientObject, setClientValue, setClientValue, setClientValue, setClientValue, setClientValue, setClientValue, setClientValue, setCookie, setCookie, setCookie, setCookie, setCookie, setCookie, setCookie, setSessionObject, setSessionObject, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue, setUserValue
 

Field Detail

FILENAME_TODO

protected static java.lang.String FILENAME_TODO
Constructor Detail

E4ServletImplementation_Applet

public E4ServletImplementation_Applet()
Method Detail

isRunningServer

public boolean isRunningServer()
Description copied from interface: E4ServletImplementation_Intf
Check, if the implementation of this interface is running in Server mode. A server needs an Apache Tomcat or similar, URL's are passed to the server and the CGI interface is used.

Specified by:
isRunningServer in interface E4ServletImplementation_Intf
Returns:
true, if running in Server environment, false if running in E4Client environment
See Also:
E4ServletImplementation_Servlet, E4ServletImplementation_Intf.isRunningClient()

isRunningClient

public boolean isRunningClient()
Description copied from interface: E4ServletImplementation_Intf
Check, if the implementation of this interface is running in E4Client mode. A client covers the CGI implementation and URL handling with E4JavaScript functions, instead of a servlet a applet is included into a web page that handles all the interaction between the browser and the e4s.

Specified by:
isRunningClient in interface E4ServletImplementation_Intf
Returns:
true, if running in E4Client environment, false if running in Server environment
See Also:
E4ServletImplementation_Intf.isRunningServer()

isRunningClient_Microsoft

public static boolean isRunningClient_Microsoft()
Check, if - in the case of an client application - Microsoft VM or Sun Java is running.

Returns:
true if the Microsoft Java VM is installed and activated, false for any Java plug-in.
See Also:
isRunningClient()

openHtmlOutput

public void openHtmlOutput()
Specified by:
openHtmlOutput in interface E4ServletImplementation_Intf

writeln

public void writeln(java.lang.String s)
Specified by:
writeln in interface E4ServletImplementation_Intf

write

public void write(java.lang.String s)
Specified by:
write in interface E4ServletImplementation_Intf

write

public void write(java.lang.StringBuffer s)

rem

public void rem(java.lang.String s)
Specified by:
rem in interface E4ServletImplementation_Intf

closeHtmlOutput

public java.lang.String closeHtmlOutput()
Specified by:
closeHtmlOutput in interface E4ServletImplementation_Intf

write

public void write(E4HtmlElement element)
           throws java.lang.Exception
Description copied from interface: E4ServletImplementation_Intf
Execute the E4HtmlElement_Intf.toHtml(e4s.util.E4StringBufferHtml, e4s.servlet.E4ServletImplementation_Intf) functions for this element and append the HTML content generated to the current output buffer.

Specified by:
write in interface E4ServletImplementation_Intf
Parameters:
element - the HTML element to be rendered
Throws:
java.lang.Exception
See Also:
E4HtmlElement_Intf.toHtml(e4s.util.E4StringBufferHtml, e4s.servlet.E4ServletImplementation_Intf)

writePreserved

public void writePreserved(java.lang.String id,
                           E4HtmlElement_Intf element)
Store any (typically frame) content for later output by the function writePreservedOut().

Specified by:
writePreserved in interface E4ServletImplementation_Intf
Parameters:
id - the value of the E4ServletImplementation_Intf.PARAM_PRESERVED parameter as generated by the FRAMESET.toHtml(e4s.util.E4StringBufferHtml, e4s.servlet.E4ServletImplementation_Intf) function.
element - the element to convert into plain Html
See Also:
E4ServletImplementation_Intf.writePreserved(String,E4HtmlElement_Intf), FRAMESET.toHtml(e4s.util.E4StringBufferHtml, e4s.servlet.E4ServletImplementation_Intf), E4ServletImplementation_Intf.writePreservedOut()

writePreservedOut

public boolean writePreservedOut()
Description copied from interface: E4ServletImplementation_Intf
Process (write out) any prestored output. See FRAMESET and E4ServletImplementation_Intf.writePreserved(java.lang.String, e4s.html.E4HtmlElement_Intf). This function needs to be placed in doPost() or doGet() before any other actions take place.

Specified by:
writePreservedOut in interface E4ServletImplementation_Intf
Returns:
true, if there was a requested ID (by the E4ServletImplementation_Intf.PARAM_PRESERVED parameter. In this case, no further output or action is needed. false, no preserved requested ID available, normal proceeding recommended.
See Also:
E4ServletImplementation_Intf.writePreservedOut()

getPreserved

public E4StringBufferHtml getPreserved(java.lang.String preservedId)
Description copied from interface: E4ServletImplementation_Intf
Get the buffer for the preserved element.

Specified by:
getPreserved in interface E4ServletImplementation_Intf
Returns:
the buffer associated with preservedId
See Also:
E4ServletImplementation_Intf.writePreservedOut(), E4ServletImplementation_Intf.writePreserved( String, E4HtmlElement_Intf ), e4s.E4Constants#PARAM_PRESERVED

getPreserved_static

public static E4StringBufferHtml getPreserved_static(java.lang.String preservedId)

invoceFunctionHTML

public HTML invoceFunctionHTML(E4Method_Intf mref)
Specified by:
invoceFunctionHTML in interface E4ServletImplementation_Intf

invoceFunctionHTML

public HTML invoceFunctionHTML(E4Method_Intf mref,
                               E4CgiParams params)
Specified by:
invoceFunctionHTML in interface E4ServletImplementation_Intf

invoceFunction

public boolean invoceFunction()
Specified by:
invoceFunction in interface E4ServletImplementation_Intf

invoceFunction

public boolean invoceFunction(E4Method_Intf mref)

getParameters

public E4CgiParams getParameters()
Collect the HTML (CGI) Parameters.

Specified by:
getParameters in interface E4ServletImplementation_Intf
Returns:
an object containing all the CGI parameters

addParameter

public void addParameter(java.lang.String paramname,
                         java.lang.String val)

getUrl

public java.lang.String getUrl()
Description copied from interface: E4ServletImplementation_Intf
Get the URL of the servlet itself. Example: when your servlet zone in Tomcat is named "zoneX" and your servlet is mapped to "servletY" then this function would return "/zoneX/servletY".

Specified by:
getUrl in interface E4ServletImplementation_Intf
Returns:
"."

getSessionId

public java.lang.String getSessionId()
Get the servlet's session.

Specified by:
getSessionId in interface E4ServletImplementation_Intf
Specified by:
getSessionId in class E4ServletImplementation
Returns:
the session handler
See Also:
E4ServletImplementation_Intf.invalidateSession(boolean), E4ServletImplementation_Intf.getSession()

getSessionObject

public java.lang.Object getSessionObject(java.lang.String obj_id)
Get a session object for the current user session.

Specified by:
getSessionObject in interface E4ServletImplementation_Intf
Specified by:
getSessionObject in class E4ServletImplementation
Parameters:
obj_id - identifyer for the object
Returns:
null if not found, or the object associated with this id.
See Also:
removeSessionObject( String ), setSessionObject( String, Object ), getSessionObjects(), E4ServletImplementation.setSessionObject( String, boolean ), E4ServletImplementation.setSessionObject( String, long ), E4ServletImplementation.getSessionObject_String( String ), E4ServletImplementation.getSessionObject_Long( String ), E4ServletImplementation.getSessionObject_Boolean( String )

getSessionObject

public java.lang.Object getSessionObject(java.lang.String obj_id,
                                         boolean exception_not_found)
                                  throws E4ObjectNotAvailableException
Get a session object for the current user session.

Specified by:
getSessionObject in interface E4ServletImplementation_Intf
Parameters:
obj_id - identifyer for the object
exception_not_found - throw an exception if the object can't be found
Returns:
null if not found, or the object associated with this id.
Throws:
E4ObjectNotAvailableException
See Also:
removeSessionObject( String ), setSessionObject( String, Object ), getSessionObjects(), E4ServletImplementation.setSessionObject( String, boolean ), E4ServletImplementation.setSessionObject( String, long ), E4ServletImplementation.getSessionObject_String( String ), E4ServletImplementation.getSessionObject_Long( String ), E4ServletImplementation.getSessionObject_Boolean( String )

setSessionObject

public void setSessionObject(java.lang.String obj_id,
                             java.lang.Object obj)
Set a session object for the current user session.

Specified by:
setSessionObject in interface E4ServletImplementation_Intf
Specified by:
setSessionObject in class E4ServletImplementation
Parameters:
obj_id - identifyer for the object
obj - the object to be stored
See Also:
removeSessionObject( String ), getSessionObject( String ), getSessionObjects(), E4ServletImplementation.setSessionObject( String, boolean ), E4ServletImplementation.setSessionObject( String, long ), E4ServletImplementation.getSessionObject_String( String ), E4ServletImplementation.getSessionObject_Long( String ), E4ServletImplementation.getSessionObject_Boolean( String )

setSessionObject

public void setSessionObject(E4SessionObject_Intf obj)
Set a session object for the current user session.

Specified by:
setSessionObject in interface E4ServletImplementation_Intf
Parameters:
obj - the object to be stored
See Also:
removeSessionObject( String ), getSessionObject( String ), getSessionObjects(), E4ServletImplementation.setSessionObject( String, boolean ), E4ServletImplementation.setSessionObject( String, long ), E4ServletImplementation.getSessionObject_String( String ), E4ServletImplementation.getSessionObject_Long( String ), E4ServletImplementation.getSessionObject_Boolean( String )

getSessionObjects

public java.util.Hashtable getSessionObjects()
Get a Hashtable containing all session objects.

Specified by:
getSessionObjects in interface E4ServletImplementation_Intf
Specified by:
getSessionObjects in class E4ServletImplementation
Returns:
null if no Hashtable is defined, or a Hashtable containing the objects.
See Also:
removeSessionObject( String ), setSessionObject( String, Object ), getSessionObject( String ), E4ServletImplementation.setSessionObject( String, boolean ), E4ServletImplementation.setSessionObject( String, long ), E4ServletImplementation.getSessionObject_String( String ), E4ServletImplementation.getSessionObject_Long( String ), E4ServletImplementation.getSessionObject_Boolean( String )

removeSessionObject

public void removeSessionObject(java.lang.String obj_id)
Remove a session object for the current user session.

Specified by:
removeSessionObject in interface E4ServletImplementation_Intf
Specified by:
removeSessionObject in class E4ServletImplementation
Parameters:
obj_id - identifyer for the object
See Also:
getSessionObject( String ), setSessionObject( String, Object ), getSessionObjects(), E4ServletImplementation.setSessionObject( String, boolean ), E4ServletImplementation.setSessionObject( String, long ), E4ServletImplementation.getSessionObject_String( String ), E4ServletImplementation.getSessionObject_Long( String ), E4ServletImplementation.getSessionObject_Boolean( String )

removeSessionObject

public void removeSessionObject(E4SessionObject_Intf obj)
Description copied from interface: E4ServletImplementation_Intf
Remove a session object for the current user session.

Specified by:
removeSessionObject in interface E4ServletImplementation_Intf
Overrides:
removeSessionObject in class E4ServletImplementation
See Also:
#getSessionObject( e4s.servlet.E4SessionObject_Intf ), E4ServletImplementation_Intf.setSessionObject( String, boolean )

removeSessionObjects

public void removeSessionObjects()
Description copied from interface: E4ServletImplementation_Intf
Removes all session objects for the current session.

Specified by:
removeSessionObjects in interface E4ServletImplementation_Intf

getDateFormat

public java.text.SimpleDateFormat getDateFormat()
Description copied from class: E4ServletImplementation
Get the date format (depending on the current logged in user).

Specified by:
getDateFormat in interface E4ServletImplementation_Intf
Overrides:
getDateFormat in class E4ServletImplementation
Returns:
(TEST) "dd.MM.yyyy"
See Also:
E4ServletImplementation.getTimeFormat(), E4ApplObj_Intf.getDateFormat(), T_E4S_COMPANY_USER_Sel.CI_DATEFORMAT

getTimeFormat

public java.text.SimpleDateFormat getTimeFormat()
Description copied from class: E4ServletImplementation
Get the time format (depending on the current logged in user).

Specified by:
getTimeFormat in interface E4ServletImplementation_Intf
Overrides:
getTimeFormat in class E4ServletImplementation
Returns:
(TEST) "HH:mm:ss"
See Also:
E4ServletImplementation.getTimeFormat(), E4ApplObj_Intf.getTimeFormat(), T_E4S_COMPANY_USER_Sel.CI_DATEFORMAT

getDateTimeFormat

public java.text.SimpleDateFormat getDateTimeFormat()
Specified by:
getDateTimeFormat in interface E4ServletImplementation_Intf
Returns:
(TEST) "HH:mm:ss"

SystemError

public void SystemError(java.lang.Throwable t)
Specified by:
SystemError in interface E4ServletImplementation_Intf

SystemError

public void SystemError(java.io.IOException ioe)
Specified by:
SystemError in interface E4ServletImplementation_Intf

SystemError

public void SystemError(E4DBException dbe)
Specified by:
SystemError in interface E4ServletImplementation_Intf

SystemError

public void SystemError(int errortype,
                        java.lang.Throwable t,
                        java.lang.String txt)
Specified by:
SystemError in interface E4ServletImplementation_Intf

SystemError

public void SystemError(java.lang.String errormsg)
Specified by:
SystemError in interface E4ServletImplementation_Intf

defaultE4DocumentBase

public E4DocumentBase defaultE4DocumentBase()
Specified by:
defaultE4DocumentBase in interface E4ServletImplementation_Intf

defaultPersistantBase

public E4PersistantBase defaultPersistantBase()
Specified by:
defaultPersistantBase in interface E4ServletImplementation_Intf

setPersistantParameter

public void setPersistantParameter(java.lang.String paramname,
                                   java.lang.String paramvalue)
Save a user dependent parameter in the user value settings.

Specified by:
setPersistantParameter in interface E4ServletImplementation_Intf
Parameters:
paramname - name of the parameter
paramvalue - value for this parameter
See Also:
E4ServletImplementation_Intf.getPersistantParameter(java.lang.String), #getSystemParameter

getPersistantParameter

public java.lang.String getPersistantParameter(java.lang.String paramname)
Get a user dependent parameter from the user value settings.

Specified by:
getPersistantParameter in interface E4ServletImplementation_Intf
Parameters:
paramname - name of the parameter
Returns:
value of the parameter
See Also:
E4ServletImplementation_Intf.setPersistantParameter(java.lang.String, java.lang.String), #setSystemParameter, E4ServletImplementation_Intf.getPersistantParameterIntArr(java.lang.String)

getPersistantParameterIntArr

public int[] getPersistantParameterIntArr(java.lang.String paramname)
Get a user dependent parameter from the user value settings. For integer array value only.

Specified by:
getPersistantParameterIntArr in interface E4ServletImplementation_Intf
Parameters:
paramname - name of the parameter
Returns:
value of the parameters
See Also:
E4ServletImplementation_Intf.getPersistantParameter(java.lang.String), E4ServletImplementation_Intf.getPersistantParameterIntArr(java.lang.String)

assignCSS

public void assignCSS(int level,
                      CSS_Name name)
               throws E4Exception
Assign a E4CSS style to the current session. Note that there might be several E4CSS definitions, each containing of STYLE definitions for different useres running in different sessions.

Specified by:
assignCSS in interface E4ServletImplementation_Intf
Parameters:
name - the name of the E4CSS to be associated with this session
Throws:
E4Exception
See Also:
E4CssFile, getCSS(int)

getCSS

public CSS_Name getCSS(int level)
Get the E4CSS style for the current session.

Specified by:
getCSS in interface E4ServletImplementation_Intf
Returns:
the name of the E4CSS, or if no E4CSS is defined return the default E4CSS name.
See Also:
E4CssFile, #assignCSS(int)

setCookie

public void setCookie(java.lang.String name,
                      java.lang.String val)
Create a local cookie.

Specified by:
setCookie in interface E4ServletImplementation_Intf
Specified by:
setCookie in class E4ServletImplementation
Parameters:
val - the value to be stored in the cookie.
name - the name of the cookie
See Also:
#getCookie()

getCookie

public java.lang.String getCookie(java.lang.String name)
Get value from a local cookie.

Specified by:
getCookie in interface E4ServletImplementation_Intf
Specified by:
getCookie in class E4ServletImplementation
Parameters:
name - the name of the cookie
Returns:
the value to be stored in the cookie.
See Also:
#setCookie(String)

getSession

public HttpSession getSession()
Description copied from interface: E4ServletImplementation_Intf
Get the servlet's session.

Specified by:
getSession in interface E4ServletImplementation_Intf
Returns:
null
See Also:
E4ServletImplementation_Intf.invalidateSession(boolean), E4ServletImplementation_Intf.getSessionId()

invalidateSession

public void invalidateSession(boolean dummy)
Empty Implementation.

Specified by:
invalidateSession in interface E4ServletImplementation_Intf
Parameters:
dummy - true: immediatly terminates the session now, false: terminates the session an servlet exit
See Also:
E4ServletImplementation_Intf.getSession(), E4ServletImplementation_Intf.getSessionId()

onExitTask

public void onExitTask()
Description copied from interface: E4ServletImplementation_Intf
This function is called on exit of the current task.

Specified by:
onExitTask in interface E4ServletImplementation_Intf

getHttpAddr

public java.lang.String getHttpAddr()
Empty Implementation.

Specified by:
getHttpAddr in interface E4ServletImplementation_Intf
Returns:
null
See Also:
E4ServletImplementation_Servlet.getHttpAddr(), e4s.E4Settings#getHttpAddr()

_getSVNVersionString

public static java.lang.String _getSVNVersionString()
Get version info string from subversion.

Returns:
the version info string.
See Also:
E4Util.getRevisionCodeFromSVN(Class)

www.element4solution.com