Class JspFactory

java.lang.Object
javax.servlet.jsp.JspFactory

public abstract class JspFactory extends Object
Minimal JSP Factory implementation for Gumdrop JSP support.

This factory class provides the default implementation for creating PageContext instances and managing JSP runtime resources.

Author:
Chris Burdess
  • Constructor Details

    • JspFactory

      public JspFactory()
      Sole constructor. (For invocation by subclass constructors, typically implicit.)
  • Method Details

    • setDefaultFactory

      public static void setDefaultFactory(JspFactory deflt)
      Sets the default factory for this implementation. It is illegal for any principal other than the JSP Engine runtime to call this method.
      Parameters:
      deflt - The default factory implementation
    • getDefaultFactory

      public static JspFactory getDefaultFactory()
      Returns the default factory for this implementation.
      Returns:
      the default factory for this implementation
    • getPageContext

      public abstract PageContext getPageContext(javax.servlet.Servlet servlet, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, String errorPageURL, boolean needsSession, int bufferSize, boolean autoFlush)
      Obtain an instance of a PageContext class implementation for use by the calling Servlet and base implementation.
      Parameters:
      servlet - the requesting servlet
      request - the current request pending on the servlet
      response - the current response pending on the servlet
      errorPageURL - the URL of the error page for the requesting JSP, or null
      needsSession - true if the JSP participates in a session
      bufferSize - the buffer size from the page directive, or 8192
      autoFlush - whether the buffer should be auto flushed
      Returns:
      A valid PageContext instance for use by the calling servlet.
    • releasePageContext

      public abstract void releasePageContext(PageContext pc)
      Called to release a previously allocated PageContext object. Results in PageContext.release() being invoked. This method should be invoked prior to returning from the _jspService() method of a JSP implementation class.
      Parameters:
      pc - A PageContext previously obtained by getPageContext()