billbarker    2003/03/12 22:24:10

  Modified:    coyote/src/java/org/apache/coyote/tomcat5
                        CoyoteConnector.java
  Log:
  Make the Mapper 'redirectDirectories' setting configurable.
  
  Revision  Changes    Path
  1.18      +17 -1     
jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat5/CoyoteConnector.java
  
  Index: CoyoteConnector.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat5/CoyoteConnector.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- CoyoteConnector.java      8 Mar 2003 06:51:34 -0000       1.17
  +++ CoyoteConnector.java      13 Mar 2003 06:24:10 -0000      1.18
  @@ -859,6 +859,22 @@
        }
   
       /**
  +     * Set the flag to see if we do a redirect to directories that don't end
  +     * in a '/'.
  +     */
  +    public void setRedirectDirectories(boolean rd) {
  +        mapper.setRedirectDirectories(rd);
  +    }
  +
  +    /**
  +     * Return the flag to see if we do a redirect to directories that don't 
  +     * end in a '/'.
  +     */
  +    public boolean getRedirectDirectories() {
  +        return mapper.getRedirectDirectories();
  +    }
  +
  +    /**
        * Return the scheme that will be assigned to requests received
        * through this connector.  Default value is "http".
        */
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to