Interface WebApp

All Known Implementing Classes:
DefaultApp

public interface WebApp
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final long
     
    static final long
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    maxPostingSize(String requestedPath)
    This Method must return the limitation for data-posting in bytes.
    process(Request request)
    This Method must process the Request from a WebBrowser
    void
    Will be called before terminating the Server
    void
    This Method can config this Object.
  • Field Details

  • Method Details

    • process

      WebDoc process(Request request)
      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

      void start(String name, HashMap<String,Object> config, SimpleFlexAccesser sfa)
      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

      long maxPostingSize(String requestedPath)
      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