greenrd     01/01/24 07:52:27

  Modified:    src/org/apache/cocoon/response RedirectException.java
               src/org/apache/cocoon Engine.java
  Log:
  fixed compile probs with redirect
  
  Revision  Changes    Path
  1.2       +3 -7      
xml-cocoon/src/org/apache/cocoon/response/RedirectException.java
  
  Index: RedirectException.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon/src/org/apache/cocoon/response/RedirectException.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- RedirectException.java    2000/11/20 18:35:59     1.1
  +++ RedirectException.java    2001/01/24 15:52:15     1.2
  @@ -1,4 +1,4 @@
  -/*-- $Id: RedirectException.java,v 1.1 2000/11/20 18:35:59 greenrd Exp $ --
  +/*-- $Id: RedirectException.java,v 1.2 2001/01/24 15:52:15 greenrd Exp $ --
    
    ============================================================================
                      The Apache Software License, Version 1.1
  @@ -55,13 +55,9 @@
    * Hack to handle redirects correctly with Tomcat 3.1.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Robin Green</a>
  - * @version $Revision: 1.1 $ $Date: 2000/11/20 18:35:59 $
  + * @version $Revision: 1.2 $ $Date: 2001/01/24 15:52:15 $
    */
   
   public class RedirectException extends RuntimeException {
  -  /**
  -   * Package-private constructor - this should only be called from
  -   * HttpServletResponseFacade.
  -   */
  -  RedirectException () {}  
  +  public RedirectException () {}  
   }
  
  
  
  1.50      +4 -4      xml-cocoon/src/org/apache/cocoon/Engine.java
  
  Index: Engine.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/Engine.java,v
  retrieving revision 1.49
  retrieving revision 1.50
  diff -u -r1.49 -r1.50
  --- Engine.java       2001/01/23 18:41:05     1.49
  +++ Engine.java       2001/01/24 15:52:22     1.50
  @@ -1,4 +1,4 @@
  -/*-- $Id: Engine.java,v 1.49 2001/01/23 18:41:05 greenrd Exp $ --
  +/*-- $Id: Engine.java,v 1.50 2001/01/24 15:52:22 greenrd Exp $ --
   
    ============================================================================
                      The Apache Software License, Version 1.1
  @@ -77,7 +77,7 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Stefano Mazzocchi</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">Robin Green</a>
  - * @version $Revision: 1.49 $ $Date: 2001/01/23 18:41:05 $
  + * @version $Revision: 1.50 $ $Date: 2001/01/24 15:52:22 $
    */
   
   public class Engine implements Defaults {
  @@ -358,7 +358,7 @@
                           if (PROFILE) profiler.startEvent (requestMarker, 
producer.getClass ());
                           Document document = producer.getDocument(request);
                           if (PROFILE) profiler.finishEvent (requestMarker, 
producer.getClass ());
  -                        if ((HttpServletResponseFacade) 
response).hasRedirected) throw new RedirectException ();
  +                        if (((HttpServletResponseFacade) 
response).hasRedirected) throw new RedirectException ();
   
                           if (LOG) logger.log(this, "Document produced", 
Logger.DEBUG);
   
  @@ -384,7 +384,7 @@
                               document = processor.process(document, 
environment);
                               page.setChangeable(processor);
                               if (PROFILE) profiler.finishEvent 
(requestMarker, processDesc);
  -                            if ((HttpServletResponseFacade) 
response).hasRedirected) throw new RedirectException ();
  +                            if (((HttpServletResponseFacade) 
response).hasRedirected) throw new RedirectException ();
                               if (LOG) logger.log(this, "Document processed", 
Logger.DEBUG);
                           }
   
  
  
  

Reply via email to