public class ERXResourceManager extends 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,
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(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,
WORequest request) |
ERXResourceManager.IVersionManager |
versionManager() |
__getJavaWebObjectsResourceAsStream, _appProjectBundle, _cacheData, _cachedBundleForFrameworkNamed, _completeURLForResourceNamed, _imageInfoForUrl, _pathForResourceNamed, _pathURLForJavaClass, _pathURLForResourceNamed, bytesForResourceNamed, errorMessageUrlForResourceNamed, flushDataCache, inputStreamForResourceNamed, pathForResourceNamed, pathURLForResourceNamed, removeDataForKey, setData, stringForKey, toString
public void setVersionManager(ERXResourceManager.IVersionManager versionManager)
versionManager
- the version manager to use for this resource managerpublic ERXResourceManager.IVersionManager versionManager()
public NSArray _frameworkProjectBundles()
_frameworkProjectBundles
in class WOResourceManager
public com.webobjects.appserver._private.WODeployedBundle _erxCachedBundleForFrameworkNamed(String aFrameworkName)
public String urlForResourceNamed(String name, String bundleName, NSArray<String> languages, WORequest request)
urlForResourceNamed
in class WOResourceManager
protected com.webobjects.appserver._private.WOURLValuedElementData cacheDataIfNotInCache(String key)
public com.webobjects.appserver._private.WOURLValuedElementData _cachedDataForKey(String key)
_cachedDataForKey
in class WOResourceManager
public NSDictionary _contentTypesDictionary()
_contentTypesDictionary
in class WOResourceManager
WOResourceManager._contentTypesDictionary()
public static boolean _shouldGenerateCompleteResourceURL(WOContext context)
context
- the contextpublic static String _completeURLForResource(String url, Boolean secure, 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 WOResourceManager
aResourcePath
- file path of the resource, or just file name of the resource,
as only the extension is requiredaResourcePath
Copyright © 2002 – 2024 Project Wonder.