aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/terminal/gwt/server/WrappedPortletRequest.java
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-07-26 15:03:28 +0300
committerLeif Åstrand <leif@vaadin.com>2012-07-26 16:29:13 +0300
commita1be41f0fcba31c20234b223e36678a8e9a30bf0 (patch)
treed86ecbe6ac594f6970056fb1e6526e7c23208c58 /src/com/vaadin/terminal/gwt/server/WrappedPortletRequest.java
parente0ae6b9f65bd5fdc0432604f4376e99960b29ce9 (diff)
downloadvaadin-framework-a1be41f0fcba31c20234b223e36678a8e9a30bf0.tar.gz
vaadin-framework-a1be41f0fcba31c20234b223e36678a8e9a30bf0.zip
Refactor Portlet URL handling based on Servlet URLs (#9168)
Diffstat (limited to 'src/com/vaadin/terminal/gwt/server/WrappedPortletRequest.java')
-rw-r--r--src/com/vaadin/terminal/gwt/server/WrappedPortletRequest.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/com/vaadin/terminal/gwt/server/WrappedPortletRequest.java b/src/com/vaadin/terminal/gwt/server/WrappedPortletRequest.java
index 44858b3e10..a3fa172034 100644
--- a/src/com/vaadin/terminal/gwt/server/WrappedPortletRequest.java
+++ b/src/com/vaadin/terminal/gwt/server/WrappedPortletRequest.java
@@ -17,6 +17,7 @@ import com.vaadin.Application;
import com.vaadin.terminal.CombinedRequest;
import com.vaadin.terminal.DeploymentConfiguration;
import com.vaadin.terminal.WrappedRequest;
+import com.vaadin.terminal.gwt.client.ApplicationConnection;
/**
* Wrapper for {@link PortletRequest} and its subclasses.
@@ -89,7 +90,14 @@ public class WrappedPortletRequest implements WrappedRequest {
@Override
public String getRequestPathInfo() {
if (request instanceof ResourceRequest) {
- return ((ResourceRequest) request).getResourceID();
+ ResourceRequest resourceRequest = (ResourceRequest) request;
+ String resourceID = resourceRequest.getResourceID();
+ if (AbstractApplicationPortlet.RESOURCE_URL_ID.equals(resourceID)) {
+ String resourcePath = resourceRequest
+ .getParameter(ApplicationConnection.V_RESOURCE_PATH);
+ return resourcePath;
+ }
+ return resourceID;
} else {
return null;
}