cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r497887 - in /incubator/cxf/trunk/rt/transports/http2/src: main/java/org/apache/cxf/transport/http/JettyHTTPDestination.java test/java/org/apache/cxf/transport/http/JettyHTTPDestinationTest.java
Date Fri, 19 Jan 2007 17:48:50 GMT
Author: ningjiang
Date: Fri Jan 19 09:48:47 2007
New Revision: 497887

URL: http://svn.apache.org/viewvc?view=rev&rev=497887
Log:
Fixed the last build error in cxf-rt-transports-http2

Modified:
    incubator/cxf/trunk/rt/transports/http2/src/main/java/org/apache/cxf/transport/http/JettyHTTPDestination.java
    incubator/cxf/trunk/rt/transports/http2/src/test/java/org/apache/cxf/transport/http/JettyHTTPDestinationTest.java

Modified: incubator/cxf/trunk/rt/transports/http2/src/main/java/org/apache/cxf/transport/http/JettyHTTPDestination.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/transports/http2/src/main/java/org/apache/cxf/transport/http/JettyHTTPDestination.java?view=diff&rev=497887&r1=497886&r2=497887
==============================================================================
--- incubator/cxf/trunk/rt/transports/http2/src/main/java/org/apache/cxf/transport/http/JettyHTTPDestination.java
(original)
+++ incubator/cxf/trunk/rt/transports/http2/src/main/java/org/apache/cxf/transport/http/JettyHTTPDestination.java
Fri Jan 19 09:48:47 2007
@@ -253,8 +253,7 @@
             return;
         }
 
-        if ("GET".equals(req.getMethod()) && req.getQueryString() != null 
-            && req.getQueryString().toLowerCase().equals("wsdl")) {
+        if ("GET".equals(req.getMethod()) && "wsdl".equalsIgnoreCase(req.getQueryString()))
{
             try {
 
                 resp.addHeader(HttpHeaderHelper.CONTENT_TYPE, "text/xml");

Modified: incubator/cxf/trunk/rt/transports/http2/src/test/java/org/apache/cxf/transport/http/JettyHTTPDestinationTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/transports/http2/src/test/java/org/apache/cxf/transport/http/JettyHTTPDestinationTest.java?view=diff&rev=497887&r1=497886&r2=497887
==============================================================================
--- incubator/cxf/trunk/rt/transports/http2/src/test/java/org/apache/cxf/transport/http/JettyHTTPDestinationTest.java
(original)
+++ incubator/cxf/trunk/rt/transports/http2/src/test/java/org/apache/cxf/transport/http/JettyHTTPDestinationTest.java
Fri Jan 19 09:48:47 2007
@@ -326,10 +326,9 @@
         request.getMethod();
         EasyMock.expectLastCall().andReturn(method);
         
-        if ("GET".equals(method)) {
-            System.out.println("query = " + query);
-            request.getRequestURI();
-            EasyMock.expectLastCall().andReturn("http://localhost/" + "bar/foo" +  query);
           
+        if ("GET".equals(method)) {            
+            request.getQueryString();
+            EasyMock.expectLastCall().andReturn(query);            
         } 
         
         if (setRedirectURL) {



Mime
View raw message