com.arsdigita.cms.dispatcher
Class DefaultItemTemplateResolver

java.lang.Object
  extended bycom.arsdigita.cms.dispatcher.AbstractTemplateResolver
      extended bycom.arsdigita.cms.dispatcher.DefaultTemplateResolver
          extended bycom.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:

  1. 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".
  2. 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).


Field Summary
 
Fields inherited from class com.arsdigita.cms.dispatcher.AbstractTemplateResolver
TEMPLATE_CONTEXT_PREFIX
 
Fields inherited from interface com.arsdigita.cms.dispatcher.TemplateResolver
versionId
 
Constructor Summary
DefaultItemTemplateResolver()
          Deprecated.  
 
Methods inherited from class com.arsdigita.cms.dispatcher.DefaultTemplateResolver
getDefaultTemplate, getItemTemplate, getTemplate, getTemplateFilename, getTemplateFilename, getTemplatePath, getTemplateXSLFilename, getTemplateXSLFilename, getTemplateXSLPath, getTypeTemplate, getTypeTemplate
 
Methods inherited from class com.arsdigita.cms.dispatcher.AbstractTemplateResolver
getTemplateContext, setTemplateContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.arsdigita.cms.dispatcher.TemplateResolver
getTemplateContext, setTemplateContext
 

Constructor Detail

DefaultItemTemplateResolver

public DefaultItemTemplateResolver()
Deprecated. 


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 19 2004:2352 UTC