Class HTMLSourcesManager


  • public class HTMLSourcesManager
    extends java.lang.Object
    The manager for HTML sources.

    This class is used to handle e.g. iiziApp.html in the server in development mode or for iiziRun.

    Author:
    Christopher Mindus
    • Method Detail

      • getHTMLSourceInfo

        public HTMLSourceInfo getHTMLSourceInfo​(java.io.File file)
                                         throws java.io.FileNotFoundException
        Gets the HTML source info for a file.
        Parameters:
        file - The file to use.
        Throws:
        java.io.FileNotFoundException - If the file is not found.
      • compressHTMLFiles

        public void compressHTMLFiles​(java.io.File root,
                                      IWebServerCompression webServer,
                                      boolean doCompress)
                               throws java.io.IOException
        Compresses the specified HTML files and adds all files for redirection. The CSS files are all compressed into one, and so for the JS files. The redirected file for the compressed and converted HTML source is also added.
        Parameters:
        root - The root directory of the web server.
        webServer - Web server compression implementor.
        doCompress - Compression flag.
        Throws:
        java.io.IOException - For I/O errors.
      • compressHTMLFile

        public void compressHTMLFile​(java.io.File root,
                                     IWebServerCompression webServer,
                                     boolean doCompress,
                                     java.lang.String fn,
                                     boolean isLocal)
                              throws java.io.IOException
        Compresses the specified HTML files and adds all files for redirection. The CSS files are all compressed into one, and so for the JS files. The redirected file for the compressed and converted HTML source is also added.
        Parameters:
        root - The root directory of the web server.
        webServer - Web server compression implementor, null for none.
        doCompress - Compression flag.
        fn - The HTML file name.
        isLocal - Flag for local file (iiziRun).
        Throws:
        java.io.IOException - For I/O errors.