From f4ab8f1de519c7968f9ca87fa2dfef7494020b2f Mon Sep 17 00:00:00 2001 From: slaws Date: Tue, 24 Jun 2008 14:40:03 +0000 Subject: 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 --- .../sca/binding/atom/provider/AtomBindingListenerServlet.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'branches/sca-java-1.3/modules') 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()); -- cgit v1.2.3