|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecte4s.util.E4Object
e4s.servlet.E4ServletImplementation
e4s.servlet.E4ServletImplementation_Applet
public class E4ServletImplementation_Applet
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.
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.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 |
| Field Detail |
|---|
protected static java.lang.String FILENAME_TODO
| Constructor Detail |
|---|
public E4ServletImplementation_Applet()
| Method Detail |
|---|
public boolean isRunningServer()
E4ServletImplementation_Intf
isRunningServer in interface E4ServletImplementation_IntfE4ServletImplementation_Servlet,
E4ServletImplementation_Intf.isRunningClient()public boolean isRunningClient()
E4ServletImplementation_Intf
isRunningClient in interface E4ServletImplementation_IntfE4ServletImplementation_Intf.isRunningServer()public static boolean isRunningClient_Microsoft()
isRunningClient()public void openHtmlOutput()
openHtmlOutput in interface E4ServletImplementation_Intfpublic void writeln(java.lang.String s)
writeln in interface E4ServletImplementation_Intfpublic void write(java.lang.String s)
write in interface E4ServletImplementation_Intfpublic void write(java.lang.StringBuffer s)
public void rem(java.lang.String s)
rem in interface E4ServletImplementation_Intfpublic java.lang.String closeHtmlOutput()
closeHtmlOutput in interface E4ServletImplementation_Intf
public void write(E4HtmlElement element)
throws java.lang.Exception
E4ServletImplementation_IntfE4HtmlElement_Intf.toHtml(e4s.util.E4StringBufferHtml, e4s.servlet.E4ServletImplementation_Intf) functions for this element
and append the HTML content generated to the current output buffer.
write in interface E4ServletImplementation_Intfelement - the HTML element to be rendered
java.lang.ExceptionE4HtmlElement_Intf.toHtml(e4s.util.E4StringBufferHtml, e4s.servlet.E4ServletImplementation_Intf)
public void writePreserved(java.lang.String id,
E4HtmlElement_Intf element)
writePreservedOut().
writePreserved in interface E4ServletImplementation_Intfid - 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 HtmlE4ServletImplementation_Intf.writePreserved(String,E4HtmlElement_Intf),
FRAMESET.toHtml(e4s.util.E4StringBufferHtml, e4s.servlet.E4ServletImplementation_Intf),
E4ServletImplementation_Intf.writePreservedOut()public boolean writePreservedOut()
E4ServletImplementation_IntfFRAMESET 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.
writePreservedOut in interface E4ServletImplementation_IntfE4ServletImplementation_Intf.PARAM_PRESERVED parameter.
In this case, no further output or action is needed.
false, no preserved requested ID available, normal proceeding recommended.E4ServletImplementation_Intf.writePreservedOut()public E4StringBufferHtml getPreserved(java.lang.String preservedId)
E4ServletImplementation_Intf
getPreserved in interface E4ServletImplementation_IntfE4ServletImplementation_Intf.writePreservedOut(),
E4ServletImplementation_Intf.writePreserved( String, E4HtmlElement_Intf ),
e4s.E4Constants#PARAM_PRESERVEDpublic static E4StringBufferHtml getPreserved_static(java.lang.String preservedId)
public HTML invoceFunctionHTML(E4Method_Intf mref)
invoceFunctionHTML in interface E4ServletImplementation_Intf
public HTML invoceFunctionHTML(E4Method_Intf mref,
E4CgiParams params)
invoceFunctionHTML in interface E4ServletImplementation_Intfpublic boolean invoceFunction()
invoceFunction in interface E4ServletImplementation_Intfpublic boolean invoceFunction(E4Method_Intf mref)
public E4CgiParams getParameters()
getParameters in interface E4ServletImplementation_Intf
public void addParameter(java.lang.String paramname,
java.lang.String val)
public java.lang.String getUrl()
E4ServletImplementation_Intf
getUrl in interface E4ServletImplementation_Intfpublic java.lang.String getSessionId()
getSessionId in interface E4ServletImplementation_IntfgetSessionId in class E4ServletImplementationE4ServletImplementation_Intf.invalidateSession(boolean),
E4ServletImplementation_Intf.getSession()public java.lang.Object getSessionObject(java.lang.String obj_id)
getSessionObject in interface E4ServletImplementation_IntfgetSessionObject in class E4ServletImplementationobj_id - identifyer for the object
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 )
public java.lang.Object getSessionObject(java.lang.String obj_id,
boolean exception_not_found)
throws E4ObjectNotAvailableException
getSessionObject in interface E4ServletImplementation_Intfobj_id - identifyer for the objectexception_not_found - throw an exception if the object can't be found
E4ObjectNotAvailableExceptionremoveSessionObject( 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 )
public void setSessionObject(java.lang.String obj_id,
java.lang.Object obj)
setSessionObject in interface E4ServletImplementation_IntfsetSessionObject in class E4ServletImplementationobj_id - identifyer for the objectobj - the object to be storedremoveSessionObject( String ),
getSessionObject( String ),
getSessionObjects(),
E4ServletImplementation.setSessionObject( String, boolean ),
E4ServletImplementation.setSessionObject( String, long ),
E4ServletImplementation.getSessionObject_String( String ),
E4ServletImplementation.getSessionObject_Long( String ),
E4ServletImplementation.getSessionObject_Boolean( String )public void setSessionObject(E4SessionObject_Intf obj)
setSessionObject in interface E4ServletImplementation_Intfobj - the object to be storedremoveSessionObject( String ),
getSessionObject( String ),
getSessionObjects(),
E4ServletImplementation.setSessionObject( String, boolean ),
E4ServletImplementation.setSessionObject( String, long ),
E4ServletImplementation.getSessionObject_String( String ),
E4ServletImplementation.getSessionObject_Long( String ),
E4ServletImplementation.getSessionObject_Boolean( String )public java.util.Hashtable getSessionObjects()
getSessionObjects in interface E4ServletImplementation_IntfgetSessionObjects in class E4ServletImplementationremoveSessionObject( 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 )public void removeSessionObject(java.lang.String obj_id)
removeSessionObject in interface E4ServletImplementation_IntfremoveSessionObject in class E4ServletImplementationobj_id - identifyer for the objectgetSessionObject( 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 )public void removeSessionObject(E4SessionObject_Intf obj)
E4ServletImplementation_Intf
removeSessionObject in interface E4ServletImplementation_IntfremoveSessionObject in class E4ServletImplementation#getSessionObject( e4s.servlet.E4SessionObject_Intf ),
E4ServletImplementation_Intf.setSessionObject( String, boolean )public void removeSessionObjects()
E4ServletImplementation_Intf
removeSessionObjects in interface E4ServletImplementation_Intfpublic java.text.SimpleDateFormat getDateFormat()
E4ServletImplementation
getDateFormat in interface E4ServletImplementation_IntfgetDateFormat in class E4ServletImplementationE4ServletImplementation.getTimeFormat(),
E4ApplObj_Intf.getDateFormat(),
T_E4S_COMPANY_USER_Sel.CI_DATEFORMATpublic java.text.SimpleDateFormat getTimeFormat()
E4ServletImplementation
getTimeFormat in interface E4ServletImplementation_IntfgetTimeFormat in class E4ServletImplementationE4ServletImplementation.getTimeFormat(),
E4ApplObj_Intf.getTimeFormat(),
T_E4S_COMPANY_USER_Sel.CI_DATEFORMATpublic java.text.SimpleDateFormat getDateTimeFormat()
getDateTimeFormat in interface E4ServletImplementation_Intfpublic void SystemError(java.lang.Throwable t)
SystemError in interface E4ServletImplementation_Intfpublic void SystemError(java.io.IOException ioe)
SystemError in interface E4ServletImplementation_Intfpublic void SystemError(E4DBException dbe)
SystemError in interface E4ServletImplementation_Intf
public void SystemError(int errortype,
java.lang.Throwable t,
java.lang.String txt)
SystemError in interface E4ServletImplementation_Intfpublic void SystemError(java.lang.String errormsg)
SystemError in interface E4ServletImplementation_Intfpublic E4DocumentBase defaultE4DocumentBase()
defaultE4DocumentBase in interface E4ServletImplementation_Intfpublic E4PersistantBase defaultPersistantBase()
defaultPersistantBase in interface E4ServletImplementation_Intf
public void setPersistantParameter(java.lang.String paramname,
java.lang.String paramvalue)
setPersistantParameter in interface E4ServletImplementation_Intfparamname - name of the parameterparamvalue - value for this parameterE4ServletImplementation_Intf.getPersistantParameter(java.lang.String),
#getSystemParameterpublic java.lang.String getPersistantParameter(java.lang.String paramname)
getPersistantParameter in interface E4ServletImplementation_Intfparamname - name of the parameter
E4ServletImplementation_Intf.setPersistantParameter(java.lang.String, java.lang.String),
#setSystemParameter,
E4ServletImplementation_Intf.getPersistantParameterIntArr(java.lang.String)public int[] getPersistantParameterIntArr(java.lang.String paramname)
getPersistantParameterIntArr in interface E4ServletImplementation_Intfparamname - name of the parameter
E4ServletImplementation_Intf.getPersistantParameter(java.lang.String),
E4ServletImplementation_Intf.getPersistantParameterIntArr(java.lang.String)
public void assignCSS(int level,
CSS_Name name)
throws E4Exception
assignCSS in interface E4ServletImplementation_Intfname - the name of the E4CSS to be associated with this session
E4ExceptionE4CssFile,
getCSS(int)public CSS_Name getCSS(int level)
getCSS in interface E4ServletImplementation_IntfE4CssFile,
#assignCSS(int)
public void setCookie(java.lang.String name,
java.lang.String val)
setCookie in interface E4ServletImplementation_IntfsetCookie in class E4ServletImplementationval - the value to be stored in the cookie.name - the name of the cookie#getCookie()public java.lang.String getCookie(java.lang.String name)
getCookie in interface E4ServletImplementation_IntfgetCookie in class E4ServletImplementationname - the name of the cookie
#setCookie(String)public HttpSession getSession()
E4ServletImplementation_Intf
getSession in interface E4ServletImplementation_IntfE4ServletImplementation_Intf.invalidateSession(boolean),
E4ServletImplementation_Intf.getSessionId()public void invalidateSession(boolean dummy)
invalidateSession in interface E4ServletImplementation_Intfdummy - true: immediatly terminates the session now, false: terminates the session an servlet exitE4ServletImplementation_Intf.getSession(),
E4ServletImplementation_Intf.getSessionId()public void onExitTask()
E4ServletImplementation_Intf
onExitTask in interface E4ServletImplementation_Intfpublic java.lang.String getHttpAddr()
getHttpAddr in interface E4ServletImplementation_IntfE4ServletImplementation_Servlet.getHttpAddr(),
e4s.E4Settings#getHttpAddr()public static java.lang.String _getSVNVersionString()
E4Util.getRevisionCodeFromSVN(Class)
|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||