home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 2000 November / APCD25112k.iso / feature / webserv / SAMBAR43.ZIP / _SETUP.1 / javaeng.jar / javax / servlet / jsp / JspFactory.java < prev    next >
Encoding:
Java Source  |  2000-04-03  |  2.3 KB  |  104 lines

  1. /*
  2.  * JspFactory.java -- XXX
  3.  * 
  4.  * Copyright (c) 1999 by Free Software Foundation, Inc.
  5.  * Written by Mark Wielaard (mark@klomp.org)
  6.  * 
  7.  * This program is free software; you can redistribute it and/or modify
  8.  * it under the terms of the GNU Library General Public License as published
  9.  * by the Free Software Foundation, version 2. (see COPYING.LIB)
  10.  *
  11.  * This program is distributed in the hope that it will be useful, but
  12.  * WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program; if not, write to the Free Software Foundation  
  18.  * Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307 USA
  19.  */
  20.  
  21. package javax.servlet.jsp;
  22.  
  23. import java.io.IOException;
  24.  
  25. import javax.servlet.Servlet;
  26. import javax.servlet.ServletRequest;
  27. import javax.servlet.ServletResponse;
  28.  
  29. /**
  30.  * XXX
  31.  */
  32. public abstract class JspFactory {
  33.  
  34.     // Class variables
  35.  
  36.     // Holds the default JspFactory
  37.     // set with setDefaultFactory()
  38.     // returned by getDefaultFactory() 
  39.     private static JspFactory defaultFactory = null;
  40.  
  41.     // Constructors
  42.  
  43.     /**
  44.      * XXX [mjw] Why is this public, shouldn't it be protected?
  45.      */
  46.     public JspFactory() {}
  47.  
  48.     // Methods
  49.  
  50.     /**
  51.      * XXX
  52.      *
  53.      * @param servlet XXX
  54.      * @param request XXX
  55.      * @param response XXX
  56.      * @param needsSession XXX
  57.      * @param bufferSize XXX
  58.      * @param autoflush XXX
  59.      * @return XXX
  60.      */
  61.     public abstract PageContext getPageContext(
  62.                     Servlet servlet,
  63.                     ServletRequest request,
  64.                     ServletResponse response,
  65.                     String errorPageURL,
  66.                     boolean needsSession,
  67.                     int bufferSize,
  68.                     boolean autoflush);
  69.  
  70.     /**
  71.      * XXX
  72.      *
  73.      * @return XXX
  74.      */
  75.     public static JspFactory getDefaultFactory() {
  76.         return defaultFactory;
  77.     }
  78.     
  79.  
  80.     /**
  81.      * XXX
  82.      *
  83.      * @return XXX
  84.      */
  85.     public abstract JspEngineInfo getEngineInfo();
  86.  
  87.     /**
  88.      * XXX
  89.      *
  90.      * @param factory XXX
  91.      */
  92.     public static void setDefaultFactory(JspFactory factory) {
  93.         defaultFactory = factory;
  94.     }
  95.  
  96.     
  97.     /**
  98.      * XXX
  99.      *
  100.      * @param pageContext XXX
  101.      */
  102.     public abstract void releasePageContext(PageContext pageContext);
  103. }
  104.