Examples of lastModifiedTime()


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

      // set Content-Type (may be null)
      resourceResponse.setContentType(contentType);

      // add Last-Modified header (to support HEAD requests and If-Modified-Since)
      final Time lastModified = resourceStream.lastModifiedTime();

      if (lastModified != null)
        resourceResponse.setLastModified(lastModified);

      try
View Full Code Here

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

    {
      throw new IllegalArgumentException("resource " + fileName + " not found for scope " +
        clazz + " (path = " + path + ")");
    }

    setLastModified(stream.lastModifiedTime());

    try
    {
      if (encoding != null)
      {
View Full Code Here

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

      return sendResourceError(resourceResponse, HttpServletResponse.SC_NOT_FOUND,
          "Unable to find resource");
    }

    // add Last-Modified header (to support HEAD requests and If-Modified-Since)
    final Time lastModified = resourceStream.lastModifiedTime();

    resourceResponse.setLastModified(lastModified);

    if (resourceResponse.dataNeedsToBeWritten(attributes))
    {
View Full Code Here

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

    if (stream == null)
    {
      return null;
    }

    final Time lastModified = stream.lastModifiedTime();

    // if no timestamp is available we can not provide a version
    if (lastModified == null)
    {
      return null;
View Full Code Here

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

    {
      throw new IllegalArgumentException("resource " + fileName + " not found for scope " +
        clazz + " (path = " + path + ")");
    }

    setLastModified(stream.lastModifiedTime());

    try
    {
      if (encoding != null)
      {
View Full Code Here

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

      // set Content-Type (may be null)
      resourceResponse.setContentType(resourceStream.getContentType());

      // add Last-Modified header (to support HEAD requests and If-Modified-Since)
      final Time lastModified = resourceStream.lastModifiedTime();

      if (lastModified != null)
        resourceResponse.setLastModified(lastModified.toDate());

      try
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()

          contentType = resourceStream.getContentType();
        }

        try {

          final Time lastModified = resourceStream.lastModifiedTime();
          if (max == null || lastModified != null && lastModified.after(max)) {
            max = lastModified;
          }
          if (i > 0) {
            writeFileSeparator(out);
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()

    locale = resourceStream.getLocale();

    if (resourceStream != null)
    {
      lastModifiedTime = resourceStream.lastModifiedTime();
      lastModifiedTimeUpdate = System.currentTimeMillis();
    }

    return resourceStream;
  }
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.