com.cassinidivision.oce.rendering
Class SiteTemplateHolder
java.lang.Object
com.webobjects.appserver.WOElement
com.webobjects.appserver.WOComponent
com.cassinidivision.oce.rendering.SiteTemplateHolder
- All Implemented Interfaces:
- Cloneable, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, Serializable, WOActionResults
- public class SiteTemplateHolder
- extends WOComponent
A template responsible for rendering the site-wide (common) portions of a page
around the rendered page-specific components.
- See Also:
- Serialized Form
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCoding |
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.DefaultImplementation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.Null, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.Utility, NSKeyValueCoding.ValueAccessor |
Methods inherited from class com.webobjects.appserver.WOComponent |
_associationWithName, _awakeInContext, _childTemplate, _componentDefinition, _componentUnroll, _isPage, _setContext, _setIsPage, _setParent, _setSubcomponent, _sleepInContext, _subcomponentForElementWithID, _unroll, application, awake, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, invokeAction, isCachingEnabled, isEventLoggingEnabled, isStateless, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, reset, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, sleep, synchronizesVariablesWithBindings, takeValueForKey, takeValueForKeyPath, takeValuesFromRequest, template, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForKey, valueForKeyPath |
SiteTemplateHolder
public SiteTemplateHolder(WOContext c)
topLevelTemplateName
public String topLevelTemplateName()
throws RenderingException
- Retrieve the name of the top-level (site-wide) component
responsible for rendering the common portions of the page.
- Returns:
- The name of a WOComponent.
- Throws:
RenderingException
- if the name cannot be deduced.
expiryDateForFeatureWithResponse
public String expiryDateForFeatureWithResponse(WOResponse aResponse)
- Returns a date as to when the rendered static page should expire on the filesystem.
Looks at file expiry date in header; if there is none,
returns the effectiveDate of the next page version.
If there is only one page version, will return the default expiry date of the feature.
- Parameters:
aResponse
- The current generated response.
- Returns:
- String representing the expiry date.
appendToResponse
public void appendToResponse(WOResponse aResponse,
WOContext aContext)