Examples of lastModified()


Examples of aQute.bnd.osgi.Jar.lastModified()

            if (files.size() > 1)
              messages.GotFileNeedDir_(output.getAbsoluteFile());
          }

          String msg = "";
          if (!output.exists() || output.lastModified() <= jar.lastModified()) {
            jar.write(output);
          } else {
            msg = "(not modified)";
          }
          trace(jar.getName() + " (" + output.getName() + ") " + jar.getResources().size() + " " + msg);
View Full Code Here

Examples of aQute.lib.osgi.Jar.lastModified()

        }

        boolean modified = false;
        File output = new File(dest);

        if (!output.exists() || force || (output.lastModified() <= jar.lastModified())
            || (output.lastModified() <= project.getLastModified()))
        {
            modified = true;
            // jar.write(dest) catches and ignores IOException
            OutputStream out = new FileOutputStream(dest);
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResource.lastModified()

                    location = file._fullPath();
                }
                Log.aribawebResource_brand.debug("Found: %s", location);
            }

            String lastModified = fmt.format(new Date(resource.lastModified()));
            response.setHeaderForKey(lastModified, "Last-Modified");

            // we are not specifying any cache-control header
      // since we are letting the web server config control this
View Full Code Here

Examples of com.alibaba.citrus.service.resource.Resource.lastModified()

                public URL getURL() {
                    return null;
                }

                public long lastModified() {
                    return resource.lastModified();
                }
            };
        }
    }
}
View Full Code Here

Examples of com.alibaba.citrus.service.resource.support.ResourceAdapter.lastModified()

        expect(resource.lastModified()).andReturn(123L);
        replay(resource);

        ResourceAdapter adapter = new ResourceAdapter("/test", resource);

        assertEquals(123L, adapter.lastModified());
    }

    @Test
    public void resourceAdapter_hashCodeAndEquals() {
        initContext("beans.xml");
View Full Code Here

Examples of com.basho.riak.client.raw.StoreMeta.lastModified()

        if(storeMeta.hasIfNoneMatch() && storeMeta.getIfNoneMatch() && o != null) {
            storeMeta.etags(new String[] {o.getVtag()});
        }

        if(storeMeta.hasIfNotModified() && storeMeta.getIfNotModified()  && o != null) {
            storeMeta.lastModified(o.getLastModified());
        }

        final RiakResponse stored = retrier.attempt(new Callable<RiakResponse>() {
            public RiakResponse call() throws Exception {
                return client.store(o, storeMeta);
View Full Code Here

Examples of com.github.stephenc.javaisotools.iso9660.ISO9660Directory.lastModified()

        int fileModes = fileMode.getFileMode();
        int fileLinks = 2 + parentDir.getDirectories().size();
        rripFactory.doPXEntry(fileModes, fileLinks, 0, 0, 1);

        // TF: Timestamp
        ISO9660ShortDateDataReference date = new ISO9660ShortDateDataReference(parentDir.lastModified());
        rripFactory.doTFEntry(RRIPFactory.TF_MODIFY, date);

        // Update Directory Record Length
        return finalizeDR(memory, helper.getDifferenceTo(position));
    }
View Full Code Here

Examples of com.knowgate.jcifs.smb.SmbFile.lastModified()

                        out.print( name.substring( i ).toUpperCase() + "</div class='ext'>" );
                    } else {
                        out.print( "&nbsp;</div>" );
                    }
                    out.print( "<div style='width: 180'>" );
                    out.print( sdf.format( new Date( f.lastModified() )));
                    out.print( "</div>" );
                }
                out.println( "<br clear='all'>" );
            } else {
                out.print( "<A style=\"width: " + maxLen );
View Full Code Here

Examples of com.nexirius.util.XFile.lastModified()

                int replacements = 0;

                System.out.println("JAVA FILE: " + dirname + java.io.File.separator + fname);
                ++fcount;
                XFile file = new XFile(dirname, fname);
                long mod = file.lastModified() + 1000L;
                StringVector sv = file.getTextLines();
                StringVector svout = new StringVector();
                XString xheader = new XString(header);
                XString className = new XString(prepend + fname.substring(0, fname.length() - 5));
View Full Code Here

Examples of com.s3auth.hosts.Resource.lastModified()

                            TimeUnit.MILLISECONDS.toSeconds(
                                System.currentTimeMillis() - start
                            )
                        )
                    );
                    if (resource.lastModified() != null) {
                        response = response.withHeader(
                            HttpHeaders.LAST_MODIFIED,
                            DateUtils.formatDate(resource.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.