commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject cvs commit: jakarta-commons-sandbox/servlet/src/java/org/apache/commons/servlet RequestUtils.java
Date Tue, 25 Jun 2002 01:03:46 GMT
bayard      2002/06/24 18:03:45

  Modified:    servlet/src/java/org/apache/commons/servlet
                        RequestUtils.java
  Log:
  Changed to compile against org.apache.commons.lang.Strings.
  
  Revision  Changes    Path
  1.2       +4 -4      jakarta-commons-sandbox/servlet/src/java/org/apache/commons/servlet/RequestUtils.java
  
  Index: RequestUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/servlet/src/java/org/apache/commons/servlet/RequestUtils.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- RequestUtils.java	22 Feb 2002 18:00:50 -0000	1.1
  +++ RequestUtils.java	25 Jun 2002 01:03:45 -0000	1.2
  @@ -57,7 +57,7 @@
   
   
   import javax.servlet.http.HttpServletRequest;
  -import org.apache.commons.util.StringUtils;
  +import org.apache.commons.lang.Strings;
   
   /**
    * This class provides utilities for getting information from
  @@ -92,7 +92,7 @@
               if (headerValue == null)
               {
                   // dash w/ title case
  -                header = StringUtils.replace(header, "_", "-");
  +                header = Strings.replace(header, "_", "-");
                   headerValue = request.getHeader(header);
                   if (headerValue == null)
                   {
  @@ -107,7 +107,7 @@
                           if (headerValue == null)
                           {
                               // underscore w/ all lower
  -                            header = StringUtils.replace(header, "-", "_");
  +                            header = Strings.replace(header, "-", "_");
                               headerValue = request.getHeader(header);
                           }
                       }
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message