Class CSSResourceFilePreload


public class CSSResourceFilePreload extends PreloadClientCacheResource
Class holding information for a single Custom CSS resource that should be preloaded to the client cache when the application starts.
Author:
Christopher Mindus
  • Constructor Details

    • CSSResourceFilePreload

      public CSSResourceFilePreload(CSSAssetReferences owner, FileURIPropCnr filePropCnr, String path)
      Constructs the resource.
      Parameters:
      owner - The owner of the asset resources.
      filePropCnr - The file resource.
      path - The resource path for the client as "module$/path/filename.ext".
  • Method Details

    • getSize

      public long getSize()
      Returns the size of the resource in bytes.
      Specified by:
      getSize in class PreloadClientCacheResource
      Returns:
      The size, or -1 if resource is not found.
    • getModificationTime

      public long getModificationTime()
      Returns the modification time of the resource.
      Specified by:
      getModificationTime in class PreloadClientCacheResource
      Returns:
      The modification time, or zero if resource is not found.