public class HTMLSourcesManager extends Object
This class is used to handle e.g. iiziApp.html in the server in development mode or for iiziRun.
Modifier and Type | Method and Description |
---|---|
void |
compressHTMLFile(File root,
IWebServerCompression webServer,
boolean doCompress,
String fn,
boolean isLocal)
Compresses the specified HTML files and adds all files for redirection.
|
void |
compressHTMLFiles(File root,
IWebServerCompression webServer,
boolean doCompress)
Compresses the specified HTML files and adds all files for redirection.
|
HTMLSourceInfo |
getHTMLSourceInfo(File file)
Gets the HTML source info for a file.
|
static HTMLSourcesManager |
getInstance(IWebServerCompression webServer,
ISourceResolver resolver)
Gets the instance of the run support.
|
public static HTMLSourcesManager getInstance(IWebServerCompression webServer, ISourceResolver resolver)
public HTMLSourceInfo getHTMLSourceInfo(File file) throws FileNotFoundException
file
- The file to use.FileNotFoundException
- If the file is not found.public void compressHTMLFiles(File root, IWebServerCompression webServer, boolean doCompress) throws IOException
root
- The root directory of the web server.webServer
- Web server compression implementor.doCompress
- Compression flag.IOException
- For I/O errors.public void compressHTMLFile(File root, IWebServerCompression webServer, boolean doCompress, String fn, boolean isLocal) throws IOException
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).IOException
- For I/O errors.iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.