org.outerj.daisy.frontend
Class PageContext

java.lang.Object
  extended by org.outerj.daisy.frontend.PageContext

public class PageContext
extends java.lang.Object

An object holding useful contextual information to be passed to the view layer for each page. Since it implements XMLizable, it is directly streamable as XML in templates.


Constructor Summary
PageContext(java.lang.String mountPoint, org.outerj.daisy.repository.Repository repository, java.lang.String layoutType, java.lang.String skin, SaxBuffer skinConf, Context context)
          Constructor to use when outside the context of a site.
PageContext(java.lang.String mountPoint, SiteConf siteConf, org.outerj.daisy.repository.Repository repository, java.lang.String layoutType, java.lang.String skin, Context context)
          Constructor to use when in the context of a site.
 
Method Summary
 java.lang.String getLayoutType()
           
 java.lang.String getMountPoint()
           
 org.outerj.daisy.repository.Repository getRepository()
           
 SiteConf getSiteConf()
           
 java.lang.String getSkin()
           
 void toSAX(org.xml.sax.ContentHandler contentHandler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageContext

public PageContext(java.lang.String mountPoint,
                   org.outerj.daisy.repository.Repository repository,
                   java.lang.String layoutType,
                   java.lang.String skin,
                   SaxBuffer skinConf,
                   Context context)
Constructor to use when outside the context of a site.


PageContext

public PageContext(java.lang.String mountPoint,
                   SiteConf siteConf,
                   org.outerj.daisy.repository.Repository repository,
                   java.lang.String layoutType,
                   java.lang.String skin,
                   Context context)
Constructor to use when in the context of a site.

Method Detail

getMountPoint

public java.lang.String getMountPoint()

getSiteConf

public SiteConf getSiteConf()

getRepository

public org.outerj.daisy.repository.Repository getRepository()

getSkin

public java.lang.String getSkin()

getLayoutType

public java.lang.String getLayoutType()

toSAX

public void toSAX(org.xml.sax.ContentHandler contentHandler)
           throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException


Copyright © -2006 . All Rights Reserved.