org.japano
Class PageGenerator

java.lang.Object
  extended by org.japano.PageGenerator

public class PageGenerator
extends java.lang.Object

Loads the dynamically generated JSP classes and calls their output generation.

Version:
$Id: PageGenerator.java,v 1.19 2005/11/18 15:20:10 fforw Exp $ SourceForge.net Logo
Author:
Sven Helmberger ( sven dot helmberger at gmx dot de )

Nested Class Summary
static class PageGenerator.ErrorPage
          Default Errorpage implementation.
 
Field Summary
protected static org.apache.log4j.Logger logger
           
 
Constructor Summary
PageGenerator(JapanoConfig config)
          Initializes the Page Generator with configuration data.
 
Method Summary
 void destroy()
          Destroys the page generator
 void generatePage(Buffer out, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String uri, java.util.Map pageScope, java.lang.String errorPageURI, java.lang.Throwable throwable)
          Generates a JSP Page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static org.apache.log4j.Logger logger
Constructor Detail

PageGenerator

public PageGenerator(JapanoConfig config)
Initializes the Page Generator with configuration data.

Parameters:
config - japano config
Method Detail

generatePage

public void generatePage(Buffer out,
                         javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response,
                         java.lang.String uri,
                         java.util.Map pageScope,
                         java.lang.String errorPageURI,
                         java.lang.Throwable throwable)
                  throws java.io.IOException
Generates a JSP Page.

Parameters:
out - Buffer to generate the page into.
request - Request
response - Response
uri - URI of the page to generate. The URI from the request will be ignored.
pageScope - Map containing the initial page scope.
Throws:
java.io.IOException

destroy

public void destroy()
Destroys the page generator