public class ERXCachingWrapper extends ERXStatelessComponent
Valid keys would be for example:
parent.isEnabled
, where isEnabled would be some method on the parent.
session.user.name
headers.hostName
formValues.oid
session.localizer.language
Name | Description |
---|---|
keys | the keys to use for caching |
duration | the duration the entry stays in the cache |
entryName | the name to cache on |
Modifier and Type | Class and Description |
---|---|
protected static class |
ERXCachingWrapper.CacheEntry
Simply cache entry class.
|
WOComponent._EventLoggingEnabler, WOComponent.Event
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.MapImplementation, NSKeyValueCoding.Null<T>, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessor
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException
Modifier and Type | Field and Description |
---|---|
protected static Map |
cache
The cached entries
|
protected Long |
cacheDuration |
protected ERXCachingWrapper.CacheEntry |
entry |
protected String |
entryName |
protected NSArray |
keys |
protected NSDictionary |
values |
_dynamicBindings
_Extension, _IsEventLoggingEnabled, _keyAssociations
_CLASS
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator
NullValue
_CLASS
Constructor and Description |
---|
ERXCachingWrapper(WOContext context)
Public constructor
|
Modifier and Type | Method and Description |
---|---|
void |
appendToResponse(WOResponse response,
WOContext context)
Calls
ERXNonSynchronizingComponent.resetCachedBindingsInStatefulComponent() prior to super.appendToResponse. |
void |
awake() |
protected long |
cacheDuration() |
protected String |
entryName() |
NSKeyValueCoding |
formValues()
Returns the form values as a KVC object.
|
NSKeyValueCoding |
headers()
Returns the request headers as a KVC object.
|
WOActionResults |
invokeAction(WORequest request,
WOContext context)
Calls
ERXNonSynchronizingComponent.resetCachedBindingsInStatefulComponent() prior to super.invokeAction. |
protected NSArray |
keys() |
void |
takeValuesFromRequest(WORequest request,
WOContext context)
Calls
ERXNonSynchronizingComponent.resetCachedBindingsInStatefulComponent() prior to super.takeValuesFromRequest. |
protected NSDictionary |
values() |
isStateless, reset
resetCachedBindingsInStatefulComponent, synchronizesVariablesWithBindings
_awakeInContext, _checkAccess, _frameworkName, _includeCSSResources, _includeJavascriptResources, additionalCSSFiles, additionalJavascriptFiles, arrayValueForBinding, arrayValueForBinding, booleanValueForBinding, booleanValueForBinding, booleanValueForBinding, browser, checkAccess, clickToOpenEnabled, componentName, defaultCSSPath, defaultJavascriptPath, dynamicBindings, floatValueForBinding, intValueForBinding, isPageAccessAllowed, localizer, objectValueForBinding, objectValueForBinding, pageWithName, postAppendToResponse, preAppendToResponse, primaryCSSFile, primaryJavascriptFile, shouldCheckAccess, stringValueForBinding, stringValueForBinding, useDefaultComponentCSS, useDefaultComponentJavascript
__valueForBinding, _associationWithName, _childTemplate, _cleanUpStatelessComponent, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _templateNameForClass, _unroll, application, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, isCachingEnabled, isEventLoggingEnabled, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, setVariableValueForName, sleep, takeValueForKey, takeValueForKeyPath, template, templateWithHTMLString, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding, variableValueForName, variableWithName
protected static Map cache
protected NSArray keys
protected String entryName
protected Long cacheDuration
protected ERXCachingWrapper.CacheEntry entry
protected NSDictionary values
public ERXCachingWrapper(WOContext context)
context
- the contextpublic void awake()
awake
in class WOComponent
protected NSArray keys()
public NSKeyValueCoding headers()
public NSKeyValueCoding formValues()
protected String entryName()
protected long cacheDuration()
protected NSDictionary values()
public void takeValuesFromRequest(WORequest request, WOContext context)
ERXNonSynchronizingComponent
ERXNonSynchronizingComponent.resetCachedBindingsInStatefulComponent()
prior to super.takeValuesFromRequest.takeValuesFromRequest
in class ERXNonSynchronizingComponent
request
- from which the values will be takencontext
- of the requestpublic WOActionResults invokeAction(WORequest request, WOContext context)
ERXNonSynchronizingComponent
ERXNonSynchronizingComponent.resetCachedBindingsInStatefulComponent()
prior to super.invokeAction.invokeAction
in class ERXNonSynchronizingComponent
request
- for which the action is invokedcontext
- of the requestpublic void appendToResponse(WOResponse response, WOContext context)
ERXNonSynchronizingComponent
ERXNonSynchronizingComponent.resetCachedBindingsInStatefulComponent()
prior to super.appendToResponse.appendToResponse
in class ERXNonSynchronizingComponent
response
- to which we are appendingcontext
- context of the responseCopyright © 2002 – 2024 Project Wonder.