Class HTMLSourceInfo.Config

  • Enclosing class:
    HTMLSourceInfo

    public class HTMLSourceInfo.Config
    extends java.lang.Object
    Internal class for information.
    • Field Summary

      Fields 
      Modifier and TypeFieldDescription
      java.util.List<java.lang.String>amdList
      The cached and unmodifiable list of dynamic JS sources.
      java.util.List<java.lang.String>cssList
      The cached and unmodifiable list of CSS sources.
      booleanisDevel
      The development version flag, true means NO compression.
      booleanisLocal
      The local location flag, true means iiziRun or iiziGo, false means browser (including localhost).
      java.util.List<java.lang.String>jsList
      The cached and unmodifiable list of JS sources.
      java.util.Map<java.lang.String,​java.lang.String>settings
      The settings in an unmodifiable map.
      java.lang.Stringsource
      The transformed HTML source, null when in production mode.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      java.io.FilegetCompressedHTML()
      Gets the compresses HTML file.
      java.io.FilegetCompressedJS()
      Gets the compressed CSS file.
      java.io.FilegetMinifiedCSS()
      Gets the minified CSS file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • isLocal

        public final boolean isLocal
        The local location flag, true means iiziRun or iiziGo, false means browser (including localhost).
      • isDevel

        public final boolean isDevel
        The development version flag, true means NO compression.
      • source

        public final java.lang.String source
        The transformed HTML source, null when in production mode.
      • cssList

        public final java.util.List<java.lang.String> cssList
        The cached and unmodifiable list of CSS sources.
      • jsList

        public final java.util.List<java.lang.String> jsList
        The cached and unmodifiable list of JS sources.
      • amdList

        public final java.util.List<java.lang.String> amdList
        The cached and unmodifiable list of dynamic JS sources.

        These sources needs to be present on the client side (i.e. iiziRun), but are not loaded using "script" tags but rather dynamically using AMD.

      • settings

        public final java.util.Map<java.lang.String,​java.lang.String> settings
        The settings in an unmodifiable map.
    • Method Detail

      • getMinifiedCSS

        public java.io.File getMinifiedCSS()
                                    throws java.io.IOException
        Gets the minified CSS file.
        Returns:
        The file created.
        Throws:
        java.io.IOException - If this configuration is for development and should not be minified, or there is a problem in the minification.
      • getCompressedJS

        public java.io.File getCompressedJS()
                                     throws java.io.IOException
        Gets the compressed CSS file.
        Returns:
        The file created.
        Throws:
        java.io.IOException - If this configuration is for development and should not be compressed, or there is a problem in the compression or obfuscation.
      • getCompressedHTML

        public java.io.File getCompressedHTML()
                                       throws java.io.IOException
        Gets the compresses HTML file.
        Returns:
        The file created.
        Throws:
        java.io.IOException - If this configuration is for development and should not be compressed, or there is a problem in the compression or obfuscation.