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 2009/02/12 20:02:58 UTC
svn commit: r743840 -
/servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/HttpBridgeServlet.java
Author: gnodet
Date: Thu Feb 12 19:02:57 2009
New Revision: 743840
URL: http://svn.apache.org/viewvc?rev=743840&view=rev
Log:
SM-1802: servicemix-http consumer endpoints can not handle PUT and DELETE methods
Modified:
servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/HttpBridgeServlet.java
Modified: servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/HttpBridgeServlet.java
URL: http://svn.apache.org/viewvc/servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/HttpBridgeServlet.java?rev=743840&r1=743839&r2=743840&view=diff
==============================================================================
--- servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/HttpBridgeServlet.java (original)
+++ servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/HttpBridgeServlet.java Thu Feb 12 19:02:57 2009
@@ -51,22 +51,7 @@
}
}
- protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
- try {
- getProcessor().process(request, response);
- } catch (IOException e) {
- throw e;
- } catch (ServletException e) {
- throw e;
- } catch (RuntimeException e) {
- throw e;
- } catch (Exception e) {
- throw new ServletException("Failed to process request: " + e, e);
- }
- }
-
- protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException,
- IOException {
+ protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
try {
getProcessor().process(request, response);
} catch (IOException e) {