Examples of lastModified()


Examples of org.linkedin.util.io.ram.RAMEntry.lastModified()

  {
    RAMEntry entry = getRAMEntry();

    if(entry != null)
      return new StaticInfo(entry.getContentLength(),
                            entry.lastModified());
    else
      throw new ResourceNotFoundException(toURI());
  }

View Full Code Here

Examples of org.mortbay.resource.Resource.lastModified()

                    content = c.getInputStream();
            }
            else if (content instanceof Resource)
            {
                resource = (Resource)content;
                _responseFields.putDateField(HttpHeaders.LAST_MODIFIED_BUFFER,resource.lastModified());
                content = resource.getInputStream();
            }

            if (content instanceof Buffer)
            {
View Full Code Here

Examples of org.openqa.jetty.util.Resource.lastModified()

                return;

            if(log.isDebugEnabled())log.debug("HTACCESS="+resource);

            ht=(HTAccess)_htCache.get(resource);
            if (ht==null || ht.getLastModified()!=resource.lastModified())
            {
                ht=new HTAccess(resource);
                _htCache.put(resource,ht);
                if(log.isDebugEnabled())log.debug("HTCache loaded "+ht);
            }
View Full Code Here

Examples of org.qi4j.spi.entity.EntityState.lastModified()

            // Check modification date
            Date lastModified = getRequest().getConditions().getModifiedSince();
            if( lastModified != null )
            {
                if( lastModified.getTime() / 1000 == entityState.lastModified() / 1000 )
                {
                    throw new ResourceException( Status.REDIRECTION_NOT_MODIFIED );
                }
            }
View Full Code Here

Examples of org.rhq.enterprise.server.rest.domain.OperationHistoryRest.lastModified()

        hist.setStatus(status);
        if (history.getResource()!=null) {
            hist.setResourceName(history.getResource().getName());
        }
        hist.setOperationName(history.getOperationDefinition().getName());
        hist.lastModified(history.getModifiedTime());
        if (history.getErrorMessage()!=null) {
            hist.setErrorMessage(history.getErrorMessage());
        }
        if (history.getResults()!=null) {
            Configuration results = history.getResults();
View Full Code Here

Examples of org.springframework.core.io.Resource.lastModified()

        logger.debug("No media type found for " + resource + " - not sending a content-type header");
      }
    }

    // header phase
    if (new ServletWebRequest(request, response).checkNotModified(resource.lastModified())) {
      logger.debug("Resource not modified - returning 304");
      return;
    }
    setHeaders(response, resource, mediaType);
View Full Code Here

Examples of org.springframework.web.context.support.ServletContextResource.lastModified()

   * @return the file timestamp in milliseconds, or -1 if not determinable
   */
  protected long getFileTimestamp(String resourceUrl) {
    ServletContextResource resource = new ServletContextResource(getServletContext(), resourceUrl);
    try {
      long lastModifiedTime = resource.lastModified();
      if (logger.isDebugEnabled()) {
        logger.debug("Last-modified timestamp of " + resource + " is " + lastModifiedTime);
      }
      return lastModifiedTime;
    }
View Full Code Here

Examples of play.vfs.VirtualFile.lastModified()

                            copyStream(grizzlyResponse, file.inputstream());
                        } else {
                            copyStream(grizzlyResponse, new ByteArrayInputStream(new byte[0]));
                        }
                    } else {
                        long last = file.lastModified();
                        String etag = "\"" + last + "-" + file.hashCode() + "\"";
                        if (!isModified(etag, last, grizzlyRequest)) {
                            grizzlyResponse.setHeader("Etag", etag);
                            grizzlyResponse.setStatus(304);
                        } else {
View Full Code Here

Examples of railo.commons.io.cache.CacheEntry.lastModified()

    String key,appname,cfid;
    if(entries.size()>0){
      Iterator<CacheEntry> it = entries.iterator();
      while(it.hasNext()){
        ce=it.next();
        expires=ce.lastModified().getTime()+ce.idleTimeSpan()-StorageScopeCache.SAVE_EXPIRES_OFFSET;
        if(expires<=System.currentTimeMillis()) {
          key=ce.getKey().substring(len);
          index=key.indexOf(':');
          cfid=key.substring(0,index);
          appname=key.substring(index+1);
View Full Code Here

Examples of railo.commons.io.res.Resource.lastModified()

    Resource res=cfc.getPageSource().getResource();
    if(res!=null){
      res=res.getParentResource().getRealResource(res.getName()+".hbm.xml");
      try{
        sb.append(CommonUtil.toString(res, CommonUtil.UTF8));
        return res.lastModified();
      }
      catch(Exception e){}
    }
    return 0;
  }
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.