|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.arsdigita.cms.dispatcher.ContentItemDispatcher
This is the dispatcher for content-sections. It maintains a ContentItem-to-Template cache Code that modifies a published ContentItem's template must update the cache in this class by calling the appropriate cache methods.
| Field Summary | |
protected ItemXML |
m_itemXML
|
static Map |
s_templateResolverCache
|
| Fields inherited from interface com.arsdigita.dispatcher.Dispatcher |
versionId |
| Constructor Summary | |
ContentItemDispatcher()
|
|
| Method Summary | |
static void |
cachePut(ContentItem item,
Template t)
Method cachePut. |
static void |
cachePut(ContentSection section,
ContentType type,
Template t)
Method cachePut. |
static void |
cacheRemove(ContentItem item)
Method cacheRemove. |
void |
dispatch(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
com.arsdigita.dispatcher.RequestContext actx)
|
String |
fetchTemplateURL(ContentItem item,
javax.servlet.http.HttpServletRequest request,
com.arsdigita.dispatcher.RequestContext actx)
Fetches the URL of a template for an item. |
static ContentItem |
getContentItem(javax.servlet.http.HttpServletRequest request)
Fetches the content item from the request attributes. |
TemplateResolver |
getTemplateResolver(ContentSection section)
Fetches the TemplateResolver for a content section. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static Map s_templateResolverCache
protected ItemXML m_itemXML
| Constructor Detail |
public ContentItemDispatcher()
| Method Detail |
public void dispatch(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
com.arsdigita.dispatcher.RequestContext actx)
throws IOException,
javax.servlet.ServletException
dispatch in interface com.arsdigita.dispatcher.DispatcherIOException
javax.servlet.ServletException(HttpServletRequest, HttpServletResponse, RequestContext)public static ContentItem getContentItem(javax.servlet.http.HttpServletRequest request)
request - The HTTP request
public static void cacheRemove(ContentItem item)
item -
public static void cachePut(ContentItem item,
Template t)
item - t -
public static void cachePut(ContentSection section,
ContentType type,
Template t)
section - type - t -
public String fetchTemplateURL(ContentItem item,
javax.servlet.http.HttpServletRequest request,
com.arsdigita.dispatcher.RequestContext actx)
public TemplateResolver getTemplateResolver(ContentSection section)
section - The content section
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||