Class ZipResourceStream

  • All Implemented Interfaces:
    Closeable, Serializable, AutoCloseable, IClusterable, IResourceStream, IModifiable

    public class ZipResourceStream
    extends AbstractResourceStream
    An IResourceStream that ZIPs a directory's contents on the fly

    NOTE 1. As a future improvement, cache a map of generated ZIP files for every directory and use a Watcher to detect modifications in this directory. Using ehcache would be good for that, but it's not in Wicket dependencies yet. No caching of the generated ZIP files is done yet.

    NOTE 2. As a future improvement, implement getLastModified() and request ResourceStreamRequestTarget to generate Last-Modified and Expires HTTP headers. No HTTP cache headers are provided yet. See WICKET-385

    Jean-Baptiste Quenot
    See Also:
    Serialized Form