com.arsdigita.cms.dispatcher
Class DefaultItemTemplateResolver
java.lang.Object
com.arsdigita.cms.dispatcher.AbstractTemplateResolver
com.arsdigita.cms.dispatcher.DefaultTemplateResolver
com.arsdigita.cms.dispatcher.DefaultItemTemplateResolver
- All Implemented Interfaces:
- TemplateResolver
Deprecated. Included for compatibility with london code. use DefaultTemplateResolver
instead
- public class DefaultItemTemplateResolver
- extends DefaultTemplateResolver
Resolves the JSP template to use for dispatching an
item. This replaces TemplateResolver since the latter
has a useless API.
In general, the process for resolving a template involves two
steps:
- The template resolver examines specific properties of the
item, the content section, and/or the request itself and selects
an appropriate context. A context is simply a token
such as "plain" or "fancy".
- Based on the selected context, the template resolver
identifies an appropriate template for the item. This is a
three-step process: (1) the resolver queries for an association
between the item and a specific template for the selected
context; (2) if no such association exists, the resolver queries
the item's content type for a default template to use in the
selected context; (3) if a default template is not found, return
null (at which point the dispatcher should probably give up and
return a 404 error).
Methods inherited from class com.arsdigita.cms.dispatcher.DefaultTemplateResolver |
getDefaultTemplate, getItemTemplate, getTemplate, getTemplateFilename, getTemplateFilename, getTemplatePath, getTemplateXSLFilename, getTemplateXSLFilename, getTemplateXSLPath, getTypeTemplate, getTypeTemplate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultItemTemplateResolver
public DefaultItemTemplateResolver()
- Deprecated.
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 19 2004:2352 UTC