org.makumba.controller.http
Class MakumbaJspFactory

java.lang.Object
  extended by javax.servlet.jsp.JspFactory
      extended by org.makumba.controller.http.MakumbaJspFactory

public class MakumbaJspFactory
extends JspFactory

A JSP factory that wraps the default factory from the servlet container.
This is needed for Makumba to find out when a page begins and ends, and to store its pageContext.

Version:
$Id: MakumbaJspFactory.java,v 1.1 May 5, 2010 10:51:00 PM cristi Exp $
Author:
cristi

Field Summary
static Runnable checker
           
(package private)  JspFactory fact
           
(package private) static Runnable noop
           
 
Constructor Summary
MakumbaJspFactory(JspFactory fact)
           
 
Method Summary
 JspFactory getDecorated()
           
 JspEngineInfo getEngineInfo()
           
 JspApplicationContext getJspApplicationContext(ServletContext arg0)
           
static PageContext getPageContext()
           
 PageContext getPageContext(Servlet servlet, ServletRequest request, ServletResponse response, String errorPageURL, boolean needsSession, int buffer, boolean autoflush)
           
 void releasePageContext(PageContext pc)
           
(package private) static void reset()
          Reset the factory to the original value We do this at webapp undeploy, otherwise the next webapp will use an instance of this class loaded with the previous classloader.
 String toString()
           
 
Methods inherited from class javax.servlet.jsp.JspFactory
getDefaultFactory, setDefaultFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

checker

public static Runnable checker

noop

static Runnable noop

fact

JspFactory fact
Constructor Detail

MakumbaJspFactory

public MakumbaJspFactory(JspFactory fact)
Method Detail

reset

static void reset()
Reset the factory to the original value We do this at webapp undeploy, otherwise the next webapp will use an instance of this class loaded with the previous classloader.


getDecorated

public JspFactory getDecorated()

toString

public String toString()
Overrides:
toString in class Object

getEngineInfo

public JspEngineInfo getEngineInfo()
Specified by:
getEngineInfo in class JspFactory

getPageContext

public PageContext getPageContext(Servlet servlet,
                                  ServletRequest request,
                                  ServletResponse response,
                                  String errorPageURL,
                                  boolean needsSession,
                                  int buffer,
                                  boolean autoflush)
Specified by:
getPageContext in class JspFactory

releasePageContext

public void releasePageContext(PageContext pc)
Specified by:
releasePageContext in class JspFactory

getJspApplicationContext

public JspApplicationContext getJspApplicationContext(ServletContext arg0)
Specified by:
getJspApplicationContext in class JspFactory

getPageContext

public static PageContext getPageContext()