Commit in servicemix/base/src/main/java/org/servicemix/components/http on MAIN
BindingServlet.java+12-11.2 -> 1.3
added support for get

servicemix/base/src/main/java/org/servicemix/components/http
BindingServlet.java 1.2 -> 1.3
diff -u -r1.2 -r1.3
--- BindingServlet.java	18 Aug 2005 18:28:25 -0000	1.2
+++ BindingServlet.java	20 Sep 2005 13:23:44 -0000	1.3
@@ -23,12 +23,13 @@
 import javax.servlet.http.HttpServlet;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
+
 import java.io.IOException;
 
 /**
  * A Servlet which dispatches requests into the JBI container and returns the result.
  *
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
  */
 public class BindingServlet extends HttpServlet {
 
@@ -58,6 +59,16 @@
                 if (binding == null) {
                 throw new ServletException("No binding property available on the servlet context");
             }
+        }
+    }
+
+    
+    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+        try {
+            getBinding().process(request, response);
+        }
+        catch (JBIException e) {
+            throw new ServletException("Failed to process JBI request: " + e, e);
         }
     }
 
CVSspam 0.2.8



Reply via email to