You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ba...@apache.org on 2002/06/25 03:03:46 UTC
cvs commit: jakarta-commons-sandbox/servlet/src/java/org/apache/commons/servlet RequestUtils.java
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>