servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r415292 - /incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/ServerManager.java
Date Mon, 19 Jun 2006 11:12:05 GMT
Author: gnodet
Date: Mon Jun 19 04:12:05 2006
New Revision: 415292

URL: http://svn.apache.org/viewvc?rev=415292&view=rev
Log:
Fix service browsing for servicemix-http

Modified:
    incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/ServerManager.java

Modified: incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/ServerManager.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/ServerManager.java?rev=415292&r1=415291&r2=415292&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/ServerManager.java
(original)
+++ incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/ServerManager.java
Mon Jun 19 04:12:05 2006
@@ -39,7 +39,6 @@
 import org.mortbay.jetty.HttpConnection;
 import org.mortbay.jetty.HttpMethods;
 import org.mortbay.jetty.MimeTypes;
-import org.mortbay.jetty.Response;
 import org.mortbay.jetty.Server;
 import org.mortbay.jetty.handler.AbstractHandler;
 import org.mortbay.jetty.handler.ContextHandler;
@@ -307,8 +306,7 @@
     protected class DisplayServiceHandler extends AbstractHandler {
 
         public void handle(String target, HttpServletRequest request, HttpServletResponse
response, int dispatch) throws IOException, ServletException {
-            Response base_response = HttpConnection.getCurrentConnection().getResponse();
-            if (response.isCommitted() || base_response.getStatus()!=-1)
+            if (response.isCommitted() || HttpConnection.getCurrentConnection().getRequest().isHandled())
                 return;
             
             String method = request.getMethod();



Mime
View raw message