diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2008-06-24 14:40:03 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2008-06-24 14:40:03 +0000 |
commit | f4ab8f1de519c7968f9ca87fa2dfef7494020b2f (patch) | |
tree | 5903b77a8b6141522ae8bc0095e5843a5d344247 /branches/sca-java-1.3/modules/binding-atom-abdera | |
parent | d4cb1f400fa91e1804e29c0f8285d9bccaf30bc7 (diff) |
TUSCANY-2430 correct the way that the servlet interface is used to calculate the required feed. This now works on Windows but needs testing on Linux.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@671196 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.3/modules/binding-atom-abdera')
-rw-r--r-- | branches/sca-java-1.3/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingListenerServlet.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/branches/sca-java-1.3/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingListenerServlet.java b/branches/sca-java-1.3/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingListenerServlet.java index 31976ec260..8772a12eff 100644 --- a/branches/sca-java-1.3/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingListenerServlet.java +++ b/branches/sca-java-1.3/modules/binding-atom-abdera/src/main/java/org/apache/tuscany/sca/binding/atom/provider/AtomBindingListenerServlet.java @@ -148,8 +148,15 @@ class AtomBindingListenerServlet extends HttpServlet { // 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 path = URLDecoder.decode(request.getRequestURI().substring(request.getServletPath().length()), "UTF-8"); + String servletPath = request.getContextPath() + request.getServletPath(); + String path = URLDecoder.decode(request.getRequestURI().substring(servletPath.length()), "UTF-8"); logger.fine("get " + request.getRequestURI()); |