Interface WebApp
- All Known Implementing Classes:
DefaultApp
public interface WebApp
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionlongmaxPostingSize(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.
-
Field Details
-
UNLIMITED_UPLOAD
static final long UNLIMITED_UPLOAD- See Also:
-
NO_UPLOAD
static final long NO_UPLOAD- See Also:
-
-
Method Details
-
process
This Method must process the Request from a WebBrowser- Parameters:
request- An Object that holds all data of the request- Returns:
- A WebDoc that holds the Document to serve
-
start
This Method can config this Object. It is called after initialisation before the method process() is called the first time.- 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
-
maxPostingSize
This Method must return the limitation for data-posting in bytes. Nedative values are meaning no limits.- Parameters:
requestedPath- The path trying to send data to.- Returns:
- The maximum of Data send to.
-
quit
void quit()Will be called before terminating the Server
-