tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amy...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/servlets SsiInvokerServlet.java
Date Tue, 03 Apr 2001 22:39:33 GMT
amyroh      01/04/03 15:39:33

  Modified:    catalina/src/share/org/apache/catalina/servlets
                        SsiInvokerServlet.java
  Log:
  Added webapp-relative virtual path option.
  
  Revision  Changes    Path
  1.4       +14 -6     jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/servlets/SsiInvokerServlet.java
  
  Index: SsiInvokerServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/servlets/SsiInvokerServlet.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SsiInvokerServlet.java	2001/04/02 21:14:21	1.3
  +++ SsiInvokerServlet.java	2001/04/03 22:39:32	1.4
  @@ -1,8 +1,8 @@
   /*
    * SsiInvokerServlet.java
  - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/servlets/SsiInvokerServlet.java,v
1.3 2001/04/02 21:14:21 craigmcc Exp $
  - * $Revision: 1.3 $
  - * $Date: 2001/04/02 21:14:21 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/servlets/SsiInvokerServlet.java,v
1.4 2001/04/03 22:39:32 amyroh Exp $
  + * $Revision: 1.4 $
  + * $Date: 2001/04/03 22:39:32 $
    *
    * ====================================================================
    *
  @@ -98,7 +98,7 @@
    * Mapped to a path from within web.xml.
    *
    * @author Bip Thelin
  - * @version $Revision: 1.3 $, $Date: 2001/04/02 21:14:21 $
  + * @version $Revision: 1.4 $, $Date: 2001/04/03 22:39:32 $
    */
   public final class SsiInvokerServlet extends HttpServlet {
       /** Debug level for this servlet. */
  @@ -110,6 +110,10 @@
       /** Expiration time in seconds for the doc. */
       private Long expires = null;
   
  +
  +    /** virtual path can be webapp-relative */
  +    private boolean isVirtualWebappRelative = false;
  +
       /** The Mediator object for the SsiCommands. */
       private static SsiMediator ssiMediator = null;
   
  @@ -137,6 +141,10 @@
           } catch (Throwable t) {
               ;
           }
  +
  +        value = getServletConfig().getInitParameter("isVirtualWebappRelative");
  +        isVirtualWebappRelative = Integer.parseInt(value) > 0 ? true : false;
  +
           try {
               value = getServletConfig().getInitParameter("expires");
               expires = Long.valueOf(value);
  @@ -256,9 +264,9 @@
   
           if (ssiMediator == null)
               ssiMediator =
  -		new SsiMediator(req, res, out, servletContext, debug, path);
  +		new SsiMediator(req, res, out, servletContext, debug, path, isVirtualWebappRelative);
           else
  -            ssiMediator.flush(req, res, out, servletContext, path);
  +            ssiMediator.flush(req, res, out, servletContext, path, isVirtualWebappRelative);
   
           while ((len = in.read(buf)) != -1)
               soonOut.write(buf, 0, len);
  
  
  

Mime
View raw message