Return-Path: Delivered-To: apmail-incubator-cxf-dev-archive@locus.apache.org Received: (qmail 45370 invoked from network); 19 Jan 2007 18:08:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Jan 2007 18:08:07 -0000 Received: (qmail 11918 invoked by uid 500); 19 Jan 2007 18:08:13 -0000 Delivered-To: apmail-incubator-cxf-dev-archive@incubator.apache.org Received: (qmail 11886 invoked by uid 500); 19 Jan 2007 18:08:12 -0000 Mailing-List: contact cxf-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-dev@incubator.apache.org Received: (qmail 11877 invoked by uid 99); 19 Jan 2007 18:08:12 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jan 2007 10:08:12 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of Ning.Jiang@iona.com designates 65.223.216.181 as permitted sender) Received: from [65.223.216.181] (HELO amereast-smg1.iona.com) (65.223.216.181) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jan 2007 10:08:04 -0800 Received: from amer-ems1.IONAGLOBAL.COM ([10.65.6.25]) by amereast-smg1.iona.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id l0JI5ulW005009 for ; Fri, 19 Jan 2007 13:05:56 -0500 (EST) Received: from [10.65.4.177] ([10.65.4.177]) by amer-ems1.IONAGLOBAL.COM with Microsoft SMTPSVC(6.0.3790.1830); Fri, 19 Jan 2007 13:07:39 -0500 Message-ID: <45B108ED.7060007@iona.com> Date: Fri, 19 Jan 2007 13:07:41 -0500 From: Willem Jiang User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: cxf-dev@incubator.apache.org Subject: Re: svn commit: r497869 - /incubator/cxf/trunk/rt/transports/http2/src/main/java/org/apache/cxf/transport/http/JettyHTTPDestination.java References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 19 Jan 2007 18:07:39.0962 (UTC) FILETIME=[B51771A0:01C73BF4] X-Virus-Checked: Checked by ClamAV on apache.org Hi Eoghan, The duplication in http transports is because I don't want the development of the Jetty6 support takes effect to the current code base. Since Jetty6 's ssl support is in pre-alpha state , we don't want to replace Jetty5 with Jetty6 right now, I agree we can move the Jetty6 supporting from rt-tranpsorts-http2 to rt-transports-http to reduce the duplication, and get CXF http-transport more flexible. Cheers, Willem. Glynn, Eoghan wrote: > Hi Willem, > > Why all the duplication in rt-transports-http2? > > If we're going to keep the Jetty5-based rt-transports-http stuff, then > the two modules should be merged so as to avoid duplication, with common > code factored up into abstract base classes. > > I've raised an JIRA task for a similar refactoring of the > duplication-heavy servlet code: > http://issues.apache.org/jira/browse/CXF-343 > > Cheers, > Eoghan > > >> -----Original Message----- >> From: ningjiang@apache.org [mailto:ningjiang@apache.org] >> Sent: 19 January 2007 16:48 >> To: cxf-commits@incubator.apache.org >> Subject: svn commit: r497869 - >> /incubator/cxf/trunk/rt/transports/http2/src/main/java/org/apa >> che/cxf/transport/http/JettyHTTPDestination.java >> >> Author: ningjiang >> Date: Fri Jan 19 08:47:39 2007 >> New Revision: 497869 >> >> URL: http://svn.apache.org/viewvc?view=rev&rev=497869 >> Log: >> Get the ?wsdl work again >> >> Modified: >> >> incubator/cxf/trunk/rt/transports/http2/src/main/java/org/apac >> he/cxf/transport/http/JettyHTTPDestination.java >> >> Modified: >> incubator/cxf/trunk/rt/transports/http2/src/main/java/org/apac >> he/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/JettyHTTPDe >> stination.java?view=diff&rev=497869&r1=497868&r2=497869 >> ============================================================== >> ================ >> --- >> incubator/cxf/trunk/rt/transports/http2/src/main/java/org/apac >> he/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 08:47:39 2007 >> @@ -253,7 +253,8 @@ >> return; >> } >> >> - if ("GET".equals(req.getMethod()) && >> req.getRequestURI().toString().toLowerCase().endsWith("?wsdl")) { >> + if ("GET".equals(req.getMethod()) && >> req.getQueryString() != null >> + && req.getQueryString().toLowerCase().equals("wsdl")) { >> try { >> >> >> resp.addHeader(HttpHeaderHelper.CONTENT_TYPE, "text/xml"); >> >> >> >> > >