Project Wonder 5.0

er.extensions.appserver
Class ERXResourceManager.PropertiesVersionManager

java.lang.Object
  extended by er.extensions.appserver.ERXResourceManager.PropertiesVersionManager
All Implemented Interfaces:
ERXResourceManager.IVersionManager
Enclosing class:
ERXResourceManager

public static class ERXResourceManager.PropertiesVersionManager
extends java.lang.Object
implements ERXResourceManager.IVersionManager

PropertiesVersionManager provides the ability to control resource version numbers with Properties settings, and appends the query parameter "?xxx" to WebServerResource URLs.

Author:
mschrag
Properties
er.extensions.ERXResourceManager.versionManager.default the default version to use when an explicit version is not specified, defaults to app startup time. Ideally you should set this explicitly when you deploy, or multiple instance deployments will end up with different version numbers for the same resource.
           
er.extensions.ERXResourceManager.versionManager.[bundleName].[resourceName] the version to send for the specified resource. If not set explicitly, the app default version will be used instead.
           

Constructor Summary
ERXResourceManager.PropertiesVersionManager()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ERXResourceManager.PropertiesVersionManager

public ERXResourceManager.PropertiesVersionManager()
Method Detail

versionedUrlForResourceNamed

public 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)
Description copied from interface: ERXResourceManager.IVersionManager
Returns the variant of the given resource URL adjusted to include version information.

Specified by:
versionedUrlForResourceNamed in interface ERXResourceManager.IVersionManager
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.