com.arsdigita.cms.dispatcher
Class PageResolver

java.lang.Object
  extended bycom.arsdigita.cms.dispatcher.PageResolver
Direct Known Subclasses:
SimplePageResolver

public abstract class PageResolver
extends Object

This class contains methods for registering and resolving CMS resources in a specific content section.

The PageResolver includes methods for caching resource mappings.

Version:
$Revision: #7 $ $Date: 2004/04/07 $
Author:
Michael Pih (pihman@arsdigita.com)

Field Summary
static String versionId
           
 
Constructor Summary
PageResolver()
           
 
Method Summary
protected  BigDecimal getContentSectionID()
           
 ResourceHandler getPage(String url)
          Fetch the page associated with the request URL.
 void loadPage(String url, ResourceHandler page)
          Loads a page into the page resolver cache.
abstract  void registerPage(ResourceHandler page, String url)
          Register a page to the content section.
 void releasePage(String url)
          Flushes a page from the page resolver cache.
 void setContentSectionID(BigDecimal id)
           
abstract  void unregisterPage(ResourceHandler page, String url)
          Register a page to the content section.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

PageResolver

public PageResolver()
Method Detail

setContentSectionID

public void setContentSectionID(BigDecimal id)

getContentSectionID

protected BigDecimal getContentSectionID()

getPage

public ResourceHandler getPage(String url)
Fetch the page associated with the request URL.

Parameters:
url - The content section-relative URL stub
Returns:
The resource

registerPage

public abstract void registerPage(ResourceHandler page,
                                  String url)
Register a page to the content section.

Parameters:
page - The master page
url - The desired URL of the page

unregisterPage

public abstract void unregisterPage(ResourceHandler page,
                                    String url)
Register a page to the content section.

Parameters:
page - The master page
url - The desired URL of the page

loadPage

public void loadPage(String url,
                     ResourceHandler page)
Loads a page into the page resolver cache.

Parameters:
url - The URL of the resource to load into the cache
page - The resource

releasePage

public void releasePage(String url)
Flushes a page from the page resolver cache.

Parameters:
url - The URL of the resource to remove from the cache


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