You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2006/06/19 13:12:05 UTC
svn commit: r415292 -
/incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/ServerManager.java
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();