Class DefaultApp
java.lang.Object
ch.software_atelier.simpleflex.apps.defaultapp.DefaultApp
- All Implemented Interfaces:
WebApp
This is the default Web-App.
It just returns the requested document.
Don't use it for your own implenemtation.
-
Field Summary
Fields inherited from interface ch.software_atelier.simpleflex.apps.WebApp
NO_UPLOAD, UNLIMITED_UPLOAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanallowUpload(String path) longmaxPostingSize(String requestedPath) This Method must return the limitation for data-posting in bytes.This Method must process the Request from a WebBrowservoidquit()Will be called before terminating the ServervoidThis Method can config this Object.
-
Constructor Details
-
DefaultApp
public DefaultApp()
-
-
Method Details
-
start
Description copied from interface:WebAppThis Method can config this Object. It is called after initialisation before the method process() is called the first time.- Specified by:
startin interfaceWebApp- Parameters:
name- The name of this webapp. If the WebApp is accessable over www.myserver.net/myApp, The name is myApp.config- The Configuration of this WebApp. The keys are the same like in the host's Config-File but without the $'s.sfa- An Accesser to internal Simpleflex functionality
-
allowUpload
-
maxPostingSize
Description copied from interface:WebAppThis Method must return the limitation for data-posting in bytes. Nedative values are meaning no limits.- Specified by:
maxPostingSizein interfaceWebApp- Parameters:
requestedPath- The path trying to send data to.- Returns:
- The maximum of Data send to.
-
process
Description copied from interface:WebAppThis Method must process the Request from a WebBrowser -
quit
public void quit()Description copied from interface:WebAppWill be called before terminating the Server
-