com.arsdigita.cms.dispatcher
Class AbstractTemplateResolver
java.lang.Object
com.arsdigita.cms.dispatcher.AbstractTemplateResolver
- All Implemented Interfaces:
- TemplateResolver
- Direct Known Subclasses:
- DefaultTemplateResolver
- public abstract class AbstractTemplateResolver
- extends Object
- implements TemplateResolver
- Author:
- bche
Method Summary |
abstract String |
getTemplate(ContentSection section,
ContentItem item,
javax.servlet.http.HttpServletRequest request)
Returns the JSP template filename relative to the webapp
root. |
String |
getTemplateContext(javax.servlet.http.HttpServletRequest request)
Gets the template context from the request. |
abstract String |
getTemplatePath(Template template)
Returns the JSP template filename relative to the webapp
root for a given Template reference. |
void |
setTemplateContext(String sTemplateContext,
javax.servlet.http.HttpServletRequest request)
Sets the TemplateContext parameter in the request |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TEMPLATE_CONTEXT_PREFIX
protected static final String TEMPLATE_CONTEXT_PREFIX
- See Also:
- Constant Field Values
AbstractTemplateResolver
public AbstractTemplateResolver()
getTemplate
public abstract String getTemplate(ContentSection section,
ContentItem item,
javax.servlet.http.HttpServletRequest request)
- Description copied from interface:
TemplateResolver
- Returns the JSP template filename relative to the webapp
root.
- Specified by:
getTemplate
in interface TemplateResolver
- Parameters:
section
- The ContentSection for the requestitem
- The ContentItem for the requestrequest
- The current HttpServletRequest
- Returns:
- The path to the jsp template.
getTemplatePath
public abstract String getTemplatePath(Template template)
- Description copied from interface:
TemplateResolver
- Returns the JSP template filename relative to the webapp
root for a given Template reference.
- Specified by:
getTemplatePath
in interface TemplateResolver
- Parameters:
template
- The Template to resolve the URL for.
- Returns:
- The path to the jsp template.
setTemplateContext
public void setTemplateContext(String sTemplateContext,
javax.servlet.http.HttpServletRequest request)
- Description copied from interface:
TemplateResolver
- Sets the TemplateContext parameter in the request
- Specified by:
setTemplateContext
in interface TemplateResolver
- Parameters:
sTemplateContext
- the template context to setrequest
- the request in which to set the template context
getTemplateContext
public String getTemplateContext(javax.servlet.http.HttpServletRequest request)
- Description copied from interface:
TemplateResolver
- Gets the template context from the request.
- Specified by:
getTemplateContext
in interface TemplateResolver
- Parameters:
request
- the request from which to get the template context
- Returns:
- the template context
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2352 UTC