tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sl...@apache.org
Subject svn commit: r671907 - /tuscany/branches/sca-java-1.3/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingListenerServlet.java
Date Thu, 26 Jun 2008 14:06:01 GMT
Author: slaws
Date: Thu Jun 26 07:06:00 2008
New Revision: 671907

URL: http://svn.apache.org/viewvc?rev=671907&view=rev
Log:
TUSCANY-2430 - remove unwanted sys outs and add a performance enhancement

Modified:
    tuscany/branches/sca-java-1.3/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingListenerServlet.java

Modified: tuscany/branches/sca-java-1.3/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingListenerServlet.java
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.3/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingListenerServlet.java?rev=671907&r1=671906&r2=671907&view=diff
==============================================================================
--- tuscany/branches/sca-java-1.3/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingListenerServlet.java
(original)
+++ tuscany/branches/sca-java-1.3/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingListenerServlet.java
Thu Jun 26 07:06:00 2008
@@ -147,16 +147,10 @@
     protected void doGet(HttpServletRequest request, HttpServletResponse response) throws
ServletException, IOException {
 
         // No authentication required for a get request
-
-    	System.out.println(request.getRequestURI());
-    	System.out.println(request.getServletPath());
-    	System.out.println(request.getContextPath());
-    	System.out.println(request.getPathInfo());
-    	System.out.println(request.getRequestURL());
     	
         // Get the request path
-    	String servletPath = request.getContextPath() + request.getServletPath();
-        String path = URLDecoder.decode(request.getRequestURI().substring(servletPath.length()),
"UTF-8");
+    	int servletPathLength = request.getContextPath().length() + request.getServletPath().length();
+        String path = URLDecoder.decode(request.getRequestURI().substring(servletPathLength),
"UTF-8");
 
         logger.fine("get " + request.getRequestURI());
 



Mime
View raw message