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.IResourceStream.lastModifiedTime()

          // Get resource stream
          IResourceStream stream = resource.getResourceStream();

          // Get last modified time from stream
          Time time = stream.lastModifiedTime();

          try
          {
            stream.close();
          }
View Full Code Here

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

      try
      {
        byte ret[] = (byte[])cache.get();
        if (ret != null && timeStamp != null)
        {
          if (timeStamp.equals(stream.lastModifiedTime()))
          {
            return ret;
          }
        }
View Full Code Here

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

        GZIPOutputStream zout = new GZIPOutputStream(out);
        Streams.copy(stream.getInputStream(), zout);
        zout.close();
        stream.close();
        ret = out.toByteArray();
        timeStamp = stream.lastModifiedTime();
        cache = new SoftReference(ret);
        return ret;
      }
      catch (IOException e)
      {
View Full Code Here

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.IResourceStream.lastModifiedTime()

          // Get resource stream
          IResourceStream stream = resource.getResourceStream();

          // Get last modified time from stream
          Time time = stream.lastModifiedTime();

          try
          {
            stream.close();
          }
View Full Code Here

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

      try
      {
        byte ret[] = cache.get();
        if (ret != null && timeStamp != null)
        {
          if (timeStamp.equals(stream.lastModifiedTime()))
          {
            return ret;
          }
        }
View Full Code Here

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

        int length = (int)stream.length();
        ByteArrayOutputStream out = new ByteArrayOutputStream(length > 0 ? length : 0);
        Streams.copy(stream.getInputStream(), out);
        stream.close();
        ret = filterContent(out.toByteArray());
        timeStamp = stream.lastModifiedTime();
        cache = new SoftReference<byte[]>(ret);
        return ret;
      }
      catch (IOException e)
      {
View Full Code Here

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

        if (cache != null)
        {
          ret = cache.get();
          if (ret != null && timeStamp != null)
          {
            if (timeStamp.equals(stream.lastModifiedTime()))
            {
              return ret;
            }
          }
        }
View Full Code Here

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

        GZIPOutputStream zout = new GZIPOutputStream(out);
        Streams.copy(stream.getInputStream(), zout);
        zout.close();
        stream.close();
        ret = out.toByteArray();
        timeStamp = stream.lastModifiedTime();
        cache = new SoftReference<byte[]>(ret);
        return ret;
      }
      catch (IOException e)
      {
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.