Class LastModifiedResourceVersion

  • All Implemented Interfaces:
    IResourceVersion

    public class LastModifiedResourceVersion
    extends java.lang.Object
    implements IResourceVersion
    Uses the last modified timestamp of a IStaticCacheableResource converted to milliseconds as a version string.
    Since:
    1.5
    Author:
    Peter Ertl
    • Constructor Detail

      • LastModifiedResourceVersion

        public LastModifiedResourceVersion()
    • Method Detail

      • getVersion

        public java.lang.String getVersion​(IStaticCacheableResource resource)
        Description copied from interface: IResourceVersion
        get unique string identifying the version of the resource
        Specified by:
        getVersion in interface IResourceVersion
        Parameters:
        resource - cacheable resource
        Returns:
        unique version string or null if version string could not be calculated
      • getVersionPattern

        public java.util.regex.Pattern getVersionPattern()
        Description copied from interface: IResourceVersion
        a pattern that matches returned versions
        Specified by:
        getVersionPattern in interface IResourceVersion
        Returns:
        a pattern or null if no pattern is available