Author: jsdelfino
Date: Mon Mar 3 10:05:33 2008
New Revision: 633214
URL: http://svn.apache.org/viewvc?rev=633214&view=rev
Log:
use request uri instead of request path and decode encoded characters in the
uri.
Modified:
incubator/tuscany/java/sca/modules/binding-feed-atom/src/main/java/org/apache/tuscany/sca/binding/feed/provider/FeedBindingListenerServlet.java
Modified:
incubator/tuscany/java/sca/modules/binding-feed-atom/src/main/java/org/apache/tuscany/sca/binding/feed/provider/FeedBindingListenerServlet.java
URL:
http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/binding-feed-atom/src/main/java/org/apache/tuscany/sca/binding/feed/provider/FeedBindingListenerServlet.java?rev=633214&r1=633213&r2=633214&view=diff
==============================================================================
---
incubator/tuscany/java/sca/modules/binding-feed-atom/src/main/java/org/apache/tuscany/sca/binding/feed/provider/FeedBindingListenerServlet.java
(original)
+++
incubator/tuscany/java/sca/modules/binding-feed-atom/src/main/java/org/apache/tuscany/sca/binding/feed/provider/FeedBindingListenerServlet.java
Mon Mar 3 10:05:33 2008
@@ -22,6 +22,7 @@
import java.io.OutputStreamWriter;
import java.io.UnsupportedEncodingException;
import java.io.Writer;
+import java.net.URLDecoder;
import java.util.Date;
import java.util.StringTokenizer;
import java.util.logging.Logger;
@@ -147,7 +148,7 @@
// No authentication required for a get request
// Get the request path
- String path = request.getPathInfo();
+ String path =
URLDecoder.decode(request.getRequestURI().substring(request.getServletPath().length()),
"UTF-8");
// The feedType parameter is used to override what type of feed is
going
// to be produced
@@ -427,9 +428,8 @@
return;
}
-
// Get the request path
- String path = request.getPathInfo();
+ String path =
URLDecoder.decode(request.getRequestURI().substring(request.getServletPath().length()),
"UTF-8");
if (path == null || path.length() == 0 || path.equals("/")) {
Entry createdFeedEntry = null;
@@ -535,7 +535,7 @@
}
// Get the request path
- String path = request.getPathInfo();
+ String path =
request.getRequestURI().substring(request.getServletPath().length());
if (path != null && path.startsWith("/")) {
String id = path.substring(1);
@@ -621,7 +621,7 @@
}
// Get the request path
- String path = request.getPathInfo();
+ String path =
URLDecoder.decode(request.getRequestURI().substring(request.getServletPath().length()),
"UTF-8");
String id;
if (path != null && path.startsWith("/")) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]