Examples of lastModifiedTime()


Examples of org.apache.wicket.util.resource.IResourceStream.lastModifiedTime()

      final Response response = cycle.getResponse();

      // FIXME WICKET-385 Move HTTP caching features out of org.apache.wicket.Resource
      if (isCacheable())
      {
        response.setLastModifiedTime(resourceStream.lastModifiedTime());
      }
      else
      {
        response.setLastModifiedTime(Time.valueOf(-1));
      }
View Full Code Here

Examples of org.apache.wicket.util.resource.WebExternalResourceStream.lastModifiedTime()

    {
      final WebExternalResourceStream webExternalResourceStream = new WebExternalResourceStream(
        path);

      resourceResponse.setContentType(webExternalResourceStream.getContentType());
      resourceResponse.setLastModified(webExternalResourceStream.lastModifiedTime().toDate());
      resourceResponse.setFileName(path);
      resourceResponse.setWriteCallback(new WriteCallback()
      {
        @Override
        public void writeData(final Attributes attributes)
View Full Code Here

Examples of org.uberfire.java.nio.file.attribute.BasicFileAttributes.lastModifiedTime()

        AssetBuilder assetBuilder = AssetBuilderFactory.getAssetBuilder(name);
        BasicFileAttributes attrs = getFileSystem(file.toUri().toString()).provider().readAttributes(file, BasicFileAttributes.class);
        assetBuilder.uniqueId(encodeUniqueId(file.toUri().toString()))
                    .location(location)
                    .creationDate(attrs.creationTime() == null ? "" : new Date(attrs.creationTime().toMillis()).toString())
                    .lastModificationDate(attrs.lastModifiedTime() == null ? "" : new Date(attrs.lastModifiedTime().toMillis()).toString())
                    // TODO some provider specific details
                    .description("")
                    .owner("");

        if (loadContent) {
View Full Code Here

Examples of org.vertx.java.core.file.FileProps.lastModifiedTime()

        final FileSystem fileSystem = vertx.fileSystem();

        try {
            FileProps fileProps = fileSystem.propsSync(filename);
            LRUCache.CacheEntry<String, T> cacheEntry = cache.get(filename);
            final Date lastModified = fileProps.lastModifiedTime();

            if (cacheEntry == null) {
                return false;
            }
            if (cacheEntry.isFresh(lastModified)) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.