java.lang.Object
ch.software_atelier.simpleflex.apps.defaultapp.DefaultApp
All Implemented Interfaces:
WebApp

public class DefaultApp extends Object implements WebApp
This is the default Web-App. It just returns the requested document. Don't use it for your own implenemtation.
  • Constructor Details

    • DefaultApp

      public DefaultApp()
  • Method Details

    • start

      public void start(String name, HashMap<String,Object> config, SimpleFlexAccesser sfa)
      Description copied from interface: WebApp
      This Method can config this Object. It is called after initialisation before the method process() is called the first time.
      Specified by:
      start in interface WebApp
      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

      public boolean allowUpload(String path)
    • maxPostingSize

      public long maxPostingSize(String requestedPath)
      Description copied from interface: WebApp
      This Method must return the limitation for data-posting in bytes. Nedative values are meaning no limits.
      Specified by:
      maxPostingSize in interface WebApp
      Parameters:
      requestedPath - The path trying to send data to.
      Returns:
      The maximum of Data send to.
    • process

      public WebDoc process(Request request)
      Description copied from interface: WebApp
      This Method must process the Request from a WebBrowser
      Specified by:
      process in interface WebApp
      Parameters:
      request - An Object that holds all data of the request
      Returns:
      A WebDoc that holds the Document to serve
    • quit

      public void quit()
      Description copied from interface: WebApp
      Will be called before terminating the Server
      Specified by:
      quit in interface WebApp