com.arsdigita.cms.dispatcher
Class SimplePageResolver

java.lang.Object
  extended bycom.arsdigita.cms.dispatcher.PageResolver
      extended bycom.arsdigita.cms.dispatcher.SimplePageResolver

public class SimplePageResolver
extends PageResolver

The default implementation of PageResolver.

This implementation uses ResourceMapping to map resources within a content section.

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

Field Summary
static String versionId
           
 
Constructor Summary
SimplePageResolver()
           
 
Method Summary
 ResourceHandler getPage(String url)
          Fetch the page associated with the request URL.
 void registerPage(ResourceHandler page, String url)
          Register a page to the content section.
 void unregisterPage(ResourceHandler page, String url)
          Register a page to the content section.
 
Methods inherited from class com.arsdigita.cms.dispatcher.PageResolver
getContentSectionID, loadPage, releasePage, setContentSectionID
 
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

SimplePageResolver

public SimplePageResolver()
Method Detail

getPage

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

Overrides:
getPage in class PageResolver
Parameters:
url - The content section-relative URL stub
Returns:
The resource

registerPage

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

Specified by:
registerPage in class PageResolver
Parameters:
page - The master page
url - The desired URL of the page

unregisterPage

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

Specified by:
unregisterPage in class PageResolver
Parameters:
page - The master page
url - The desired URL of the page


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