public class ERXResourceManager
extends com.webobjects.appserver.WOResourceManager
| Name | Description |
|---|---|
er.extensions.ERXResourceManager.versionManager | the class name of the version manager to use (or "default", or "properties") |
| Modifier and Type | Class and Description |
|---|---|
static class |
ERXResourceManager.DefaultVersionManager
DefaultVersionManager just returns the resourceUrl unmodified.
|
static interface |
ERXResourceManager.IVersionManager
IVersionManager provides an interface for adding version numbers to
WebServerResources.
|
static class |
ERXResourceManager.PropertiesVersionManager
Implementation of the IVersionManager interface which provides the
ability to control resource version numbers with Properties settings,
and appends the query parameter "?xxx" to WebServerResource URLs.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ERXResourceManager() |
| Modifier and Type | Method and Description |
|---|---|
com.webobjects.appserver._private.WOURLValuedElementData |
_cachedDataForKey(String key) |
static String |
_completeURLForResource(String url,
Boolean secure,
com.webobjects.appserver.WOContext context)
Returns a fully qualified URL for the given partial resource URL (i.e.
|
NSDictionary |
_contentTypesDictionary()
Overrides the original implementation appending the additionalMimeTypes to the content types dictionary.
|
com.webobjects.appserver._private.WODeployedBundle |
_erxCachedBundleForFrameworkNamed(String aFrameworkName) |
NSArray |
_frameworkProjectBundles() |
protected String |
_postprocessURL(String url,
String bundleName) |
static boolean |
_shouldGenerateCompleteResourceURL(com.webobjects.appserver.WOContext context)
Returns whether or not complete resource URLs should be generated.
|
protected com.webobjects.appserver._private.WOURLValuedElementData |
cacheDataIfNotInCache(String key) |
String |
contentTypeForResourceNamed(String aResourcePath)
Overridden to supply additional mime types that are not present in the
JavaWebObjects framework.
|
void |
setVersionManager(ERXResourceManager.IVersionManager versionManager)
Sets the version manager to use for this resource manager.
|
String |
urlForResourceNamed(String name,
String bundleName,
NSArray<String> languages,
com.webobjects.appserver.WORequest request) |
ERXResourceManager.IVersionManager |
versionManager() |
__getJavaWebObjectsResourceAsStream, _appProjectBundle, _cacheData, _cachedBundleForFrameworkNamed, _completeURLForResourceNamed, _imageInfoForUrl, _pathForResourceNamed, _pathURLForJavaClass, _pathURLForResourceNamed, bytesForResourceNamed, errorMessageUrlForResourceNamed, flushDataCache, inputStreamForResourceNamed, pathForResourceNamed, pathURLForResourceNamed, removeDataForKey, setData, stringForKey, toStringpublic void setVersionManager(ERXResourceManager.IVersionManager versionManager)
versionManager - the version manager to use for this resource managerpublic ERXResourceManager.IVersionManager versionManager()
public NSArray _frameworkProjectBundles()
_frameworkProjectBundles in class com.webobjects.appserver.WOResourceManagerpublic com.webobjects.appserver._private.WODeployedBundle _erxCachedBundleForFrameworkNamed(String aFrameworkName)
public String urlForResourceNamed(String name, String bundleName, NSArray<String> languages, com.webobjects.appserver.WORequest request)
urlForResourceNamed in class com.webobjects.appserver.WOResourceManagerprotected com.webobjects.appserver._private.WOURLValuedElementData cacheDataIfNotInCache(String key)
public com.webobjects.appserver._private.WOURLValuedElementData _cachedDataForKey(String key)
_cachedDataForKey in class com.webobjects.appserver.WOResourceManagerpublic NSDictionary _contentTypesDictionary()
_contentTypesDictionary in class com.webobjects.appserver.WOResourceManagerWOResourceManager._contentTypesDictionary()public static boolean _shouldGenerateCompleteResourceURL(com.webobjects.appserver.WOContext context)
context - the contextpublic static String _completeURLForResource(String url, Boolean secure, com.webobjects.appserver.WOContext context)
url - the partial resource URLsecure - whether or not to generate a secure URLcontext - the current contextpublic String contentTypeForResourceNamed(String aResourcePath)
contentTypeForResourceNamed in class com.webobjects.appserver.WOResourceManageraResourcePath - file path of the resource, or just file name of the resource,
as only the extension is requiredaResourcePathCopyright © 2002 – 2020 Project Wonder.