com.arsdigita.cms.dispatcher
Class ItemDispatcher
java.lang.Object
com.arsdigita.cms.dispatcher.ItemDispatcher
- All Implemented Interfaces:
- com.arsdigita.dispatcher.ChainedDispatcher
- public class ItemDispatcher
- extends Object
- implements com.arsdigita.dispatcher.ChainedDispatcher
Dispatches to the JSP
or Servlet for rendering a content item.
- Version:
- $Revision: #19 $ $DateTime: 2004/04/07 16:07:11 $
- Author:
- Karl Goldstein (karlg@arsdigita.com)
Fields inherited from interface com.arsdigita.dispatcher.ChainedDispatcher |
DISPATCH_BREAK, DISPATCH_CONTINUE, versionId |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
s_itemResolverCache
public static Map s_itemResolverCache
s_templateResolverCache
public static Map s_templateResolverCache
FILE_SUFFIX
public static final String FILE_SUFFIX
- See Also:
- Constant Field Values
INDEX_FILE
public static final String INDEX_FILE
- See Also:
- Constant Field Values
TEMPLATE_ROOT
public static final String TEMPLATE_ROOT
- See Also:
- Constant Field Values
DEFAULT_ITEM_TEMPLATE
public static final String DEFAULT_ITEM_TEMPLATE
- See Also:
- Constant Field Values
DEFAULT_FOLDER_TEMPLATE
public static final String DEFAULT_FOLDER_TEMPLATE
- See Also:
- Constant Field Values
XML_SUFFIX
public static final String XML_SUFFIX
- See Also:
- Constant Field Values
XML_MODE
public static final String XML_MODE
- See Also:
- Constant Field Values
PREVIEW
public static final String PREVIEW
- The context for previewing items
- See Also:
- Constant Field Values
m_itemXML
protected ItemXML m_itemXML
ItemDispatcher
public ItemDispatcher()
setCacheItems
public static void setCacheItems(boolean value)
chainedDispatch
public int chainedDispatch(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
com.arsdigita.dispatcher.RequestContext actx)
throws IOException,
javax.servlet.ServletException
- Specified by:
chainedDispatch
in interface com.arsdigita.dispatcher.ChainedDispatcher
- Throws:
IOException
javax.servlet.ServletException
getItem
public ContentItem getItem(ContentSection section,
String url)
getItemResolver
public ItemResolver getItemResolver(ContentSection section)
- Fetches the ItemResolver for a content section. Checks cache first.
- Parameters:
section
- The content section
- Returns:
- The ItemResolver associated with the content section
getTemplateResolver
public TemplateResolver getTemplateResolver(ContentSection section)
- Fetches the ItemResolver for a content section. Checks cache first.
- Parameters:
section
- The content section
- Returns:
- The ItemResolver associated with the content section
getTemplateURL
public String getTemplateURL(ContentSection section,
ContentItem item,
javax.servlet.http.HttpServletRequest request,
com.arsdigita.dispatcher.RequestContext actx)
- Fetches the URL of a template for an item. The returned URL is
relative to the webapp context.
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2352 UTC