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
| Bindings | |
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.EventNSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.UtilityNSKeyValueCoding._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.ValueAccessorNSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException| Modifier and Type | Field and Description |
|---|---|
protected static java.util.Map |
cache
The cached entries
|
protected java.lang.Long |
cacheDuration |
protected ERXCachingWrapper.CacheEntry |
entry |
protected java.lang.String |
entryName |
protected NSArray |
keys |
protected NSDictionary |
values |
_dynamicBindings_Extension, _IsEventLoggingEnabled, _keyAssociations_CLASS_CLASS, _KeyPathSeparatorChar, KeyPathSeparatorNullValue_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 java.lang.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, valueForBooleanBinding, valueForBooleanBinding, valueForBooleanBinding, valueForIntBinding, valueForObjectBinding, valueForObjectBindingresetCachedBindingsInStatefulComponent, 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, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding, variableValueForName, variableWithNameprotected static java.util.Map cache
protected NSArray keys
protected java.lang.String entryName
protected java.lang.Long cacheDuration
protected ERXCachingWrapper.CacheEntry entry
protected NSDictionary values
public ERXCachingWrapper(WOContext context)
context - the contextpublic void awake()
awake in class WOComponentprotected NSArray keys()
public NSKeyValueCoding headers()
public NSKeyValueCoding formValues()
protected java.lang.String entryName()
protected long cacheDuration()
protected NSDictionary values()
public void takeValuesFromRequest(WORequest request, WOContext context)
ERXNonSynchronizingComponentERXNonSynchronizingComponent.resetCachedBindingsInStatefulComponent() prior to super.takeValuesFromRequest.takeValuesFromRequest in class ERXNonSynchronizingComponentrequest - from which the values will be takencontext - of the requestpublic WOActionResults invokeAction(WORequest request, WOContext context)
ERXNonSynchronizingComponentERXNonSynchronizingComponent.resetCachedBindingsInStatefulComponent() prior to super.invokeAction.invokeAction in class ERXNonSynchronizingComponentrequest - for which the action is invokedcontext - of the requestpublic void appendToResponse(WOResponse response, WOContext context)
ERXNonSynchronizingComponentERXNonSynchronizingComponent.resetCachedBindingsInStatefulComponent() prior to super.appendToResponse.appendToResponse in class ERXNonSynchronizingComponentresponse - to which we are appendingcontext - context of the responseCopyright © 2002 – 2022 Project Wonder.