org.jpublish.page.filesystem
Class FileSystemPageManager

java.lang.Object
  |
  +--org.jpublish.page.AbstractPageManager
        |
        +--org.jpublish.page.filesystem.FileSystemPageManager
All Implemented Interfaces:
PageManager

public class FileSystemPageManager
extends AbstractPageManager

The PageManager is a central access point for locating pages. Pages are loaded and cached automatically. The cache will check the file's last modification time and will update if the stored time does not match the file system's time.

Author:
Anthony Eden

Fields inherited from class org.jpublish.page.AbstractPageManager
siteContext
 
Constructor Summary
FileSystemPageManager()
          Construct a new PageManager using the given SiteContext.
 
Method Summary
 Page getPage(java.lang.String path)
          Get a Page instance from the given path.
 java.io.File getRoot()
          Get the root directory for pages.
 
Methods inherited from class org.jpublish.page.AbstractPageManager
setSiteContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSystemPageManager

public FileSystemPageManager()
Construct a new PageManager using the given SiteContext.
Parameters:
siteContext - The SiteContext
Method Detail

getRoot

public java.io.File getRoot()
Get the root directory for pages. Page requests are appended to this root directory to locate the page's XML configuration file.
Returns:
The root directory for pages

getPage

public Page getPage(java.lang.String path)
             throws java.lang.Exception
Get a Page instance from the given path. If no page can be found then this method will throw a FileNotFoundException.
Parameters:
path - The page path
Returns:
The Page
Throws:
java.lang.Exception - Any Exception


Copyright (C) 2001 Anthony Eden. All Rights Reserved.