com.caucho.jsp
Class PageManager

java.lang.Object
  extended by com.caucho.jsp.PageManager
Direct Known Subclasses:
JspManager, XtpManager

public abstract class PageManager
extends java.lang.Object

Parent template manager for both JspManager and XtpManager. PageManager is responsible for caching pages until the underlying files change.


Field Summary
protected  boolean _autoCompile
           
protected  WebApp _webApp
           
 
Method Summary
 PageContextImpl allocatePageContext(Servlet servlet, ServletRequest request, ServletResponse response, java.lang.String errorPageURL, boolean needsSession, int buffer, boolean autoFlush)
           
 PageContextImpl allocatePageContext(Servlet servlet, WebApp app, ServletRequest request, ServletResponse response, java.lang.String errorPageURL, HttpSession session, int buffer, boolean autoFlush, boolean isPrintNullAsBlank)
          The jsp page context initialization.
 PageContextWrapper createPageContextWrapper(JspContext parent)
           
 void freePageContext(PageContext pc)
           
 void freePageContextWrapper(PageContextWrapper wrapper)
           
 Path getAppDir()
           
 Path getClassDir()
           
 Page getPage(java.lang.String uri, Path path)
          Compiles and returns the page at the given path and uri.
 Page getPage(java.lang.String uri, java.lang.String pageURI, Path path, ServletConfig config)
          Compiles and returns the page at the given path and uri.
 Page getPage(java.lang.String uri, java.lang.String pageURI, Path path, ServletConfig config, java.util.ArrayList<PersistentDependency> dependList)
          Compiles and returns the page at the given path and uri.
protected  void initPageManager()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_webApp

protected WebApp _webApp

_autoCompile

protected boolean _autoCompile
Method Detail

getClassDir

public Path getClassDir()

getAppDir

public Path getAppDir()

allocatePageContext

public PageContextImpl allocatePageContext(Servlet servlet,
                                           ServletRequest request,
                                           ServletResponse response,
                                           java.lang.String errorPageURL,
                                           boolean needsSession,
                                           int buffer,
                                           boolean autoFlush)

allocatePageContext

public PageContextImpl allocatePageContext(Servlet servlet,
                                           WebApp app,
                                           ServletRequest request,
                                           ServletResponse response,
                                           java.lang.String errorPageURL,
                                           HttpSession session,
                                           int buffer,
                                           boolean autoFlush,
                                           boolean isPrintNullAsBlank)
The jsp page context initialization.


freePageContext

public void freePageContext(PageContext pc)

createPageContextWrapper

public PageContextWrapper createPageContextWrapper(JspContext parent)

freePageContextWrapper

public void freePageContextWrapper(PageContextWrapper wrapper)

getPage

public Page getPage(java.lang.String uri,
                    Path path)
             throws java.lang.Exception
Compiles and returns the page at the given path and uri. The uri is needed for jsp:include, etc. in the JSP pages.

Parameters:
path - Path to the page.
uri - uri of the page.
Returns:
the compiled JSP (or XTP) page.
Throws:
java.lang.Exception

getPage

public Page getPage(java.lang.String uri,
                    java.lang.String pageURI,
                    Path path,
                    ServletConfig config)
             throws java.lang.Exception
Compiles and returns the page at the given path and uri. The uri is needed for jsp:include, etc. in the JSP pages.

Parameters:
path - Path to the page.
uri - uri of the page.
Returns:
the compiled JSP (or XTP) page.
Throws:
java.lang.Exception

getPage

public Page getPage(java.lang.String uri,
                    java.lang.String pageURI,
                    Path path,
                    ServletConfig config,
                    java.util.ArrayList<PersistentDependency> dependList)
             throws java.lang.Exception
Compiles and returns the page at the given path and uri. The uri is needed for jsp:include, etc. in the JSP pages.

Parameters:
uri - uri of the page.
uri - uri of the page.
path - Path to the page.
Returns:
the compiled JSP (or XTP) page.
Throws:
java.lang.Exception

initPageManager

protected void initPageManager()