cziegeler    02/04/01 22:35:00

  Modified:    src/scratchpad/src/org/apache/cocoon/sunshine/sunrise
                        Handler.java
  Log:
  Removed old code. Reported by Chitharanjan Das [[EMAIL PROTECTED]]
  
  Revision  Changes    Path
  1.4       +1 -11     
xml-cocoon2/src/scratchpad/src/org/apache/cocoon/sunshine/sunrise/Handler.java
  
  Index: Handler.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/scratchpad/src/org/apache/cocoon/sunshine/sunrise/Handler.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Handler.java      13 Mar 2002 15:45:30 -0000      1.3
  +++ Handler.java      2 Apr 2002 06:35:00 -0000       1.4
  @@ -68,7 +68,7 @@
    * The sunRise Handler.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Carsten Ziegeler</a>
  - * @version CVS $Id: Handler.java,v 1.3 2002/03/13 15:45:30 cziegeler Exp $
  + * @version CVS $Id: Handler.java,v 1.4 2002/04/02 06:35:00 cziegeler Exp $
   */
   public final class Handler
   implements java.io.Serializable {
  @@ -147,16 +147,6 @@
               this.redirectURI = this.redirectURI.substring("cocoon:/".length());
           }
   
  -        if (this.redirectURI.indexOf("://") == -1
  -            && this.redirectURI.startsWith("/") == false) {
  -            boolean isDefaultPort = "http".equalsIgnoreCase(request.getScheme())
  -                                    && 80 == request.getServerPort();
  -            this.redirectURI = request.getScheme() + "://" +
  -                               request.getServerName() +
  -                               (isDefaultPort ? "" : ":" + request.getServerPort()) 
+
  -                               (request.getContextPath() == null ? "" : 
request.getContextPath()) +
  -                               '/' + this.redirectURI;
  -        }
           this.redirectParameters = SourceParameters.create(child);
   
           // get load resource (required)
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to