Project Wonder 5.0

er.extensions.appserver
Interface ERXResourceManager.IVersionManager

All Known Implementing Classes:
ERXResourceManager.DefaultVersionManager, ERXResourceManager.PropertiesVersionManager
Enclosing class:
ERXResourceManager

public static interface ERXResourceManager.IVersionManager

IVersionManager provides an interface for adding version numbers to WebServerResources. This allows you to turn on "infinite" expiration dates in mod_expires, and instead control reloading by changing the resource's URL. As an example, you might append a version number as a query string on the URL (whatever.gif?1).

Author:
mschrag

Method Summary
 java.lang.String versionedUrlForResourceNamed(java.lang.String resourceUrl, java.lang.String name, java.lang.String bundleName, com.webobjects.foundation.NSArray languages, com.webobjects.appserver.WORequest request)
          Returns the variant of the given resource URL adjusted to include version information.
 

Method Detail

versionedUrlForResourceNamed

java.lang.String versionedUrlForResourceNamed(java.lang.String resourceUrl,
                                              java.lang.String name,
                                              java.lang.String bundleName,
                                              com.webobjects.foundation.NSArray languages,
                                              com.webobjects.appserver.WORequest request)
Returns the variant of the given resource URL adjusted to include version information.

Parameters:
resourceUrl - the original resource URL
name - the name of the resource being loaded
bundleName - the name of the bundle that contains the resource
languages - the languages requested
request - the request
Returns:
a versioned variant of the resourceUrl

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.