tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/mapper Mapper.java
Date Mon, 19 May 2003 21:48:39 GMT
remm        2003/05/19 14:48:39

  Modified:    util/java/org/apache/tomcat/util/http/mapper Mapper.java
  Log:
  - Small hack: the context name should be empty when doing context mapping
    (the algorithm isn't 100% clean, but good enough since the context name is
    irrelevant here).
  
  Revision  Changes    Path
  1.20      +2 -6      jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/mapper/Mapper.java
  
  Index: Mapper.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/mapper/Mapper.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- Mapper.java	18 May 2003 18:04:59 -0000	1.19
  +++ Mapper.java	19 May 2003 21:48:39 -0000	1.20
  @@ -216,15 +216,12 @@
       /**
        * Set context, used for wrapper mapping (request dispatcher).
        * 
  -     * @param path Context path
  -     * @param context Context object
        * @param welcomeResources Welcome files defined for this context
        * @param resources Static resources of the context
        */
  -    public void setContext(String path, String[] welcomeResources, 
  +    public void setContext(String[] welcomeResources, 
                              javax.naming.Context resources) {
  -        context.name = path;
  -        //context.object = context; // Likely useless
  +        context.name = "";
           context.welcomeResources = welcomeResources;
           context.resources = resources;
       }
  @@ -548,7 +545,6 @@
           uri.toChars();
           CharChunk uricc = uri.getCharChunk();
           uricc.setLimit(-1);
  -        mappingData.contextPath.setString(context.path);
           internalMapWrapper(context, uricc, mappingData);
   
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message