diff options
author | Henri Sara <henri.sara@itmill.com> | 2011-08-31 06:45:41 +0000 |
---|---|---|
committer | Henri Sara <henri.sara@itmill.com> | 2011-08-31 06:45:41 +0000 |
commit | 5743430a20634a2a0d126e4e3866b6b03456f368 (patch) | |
tree | 223d910d291edd3332706d4b8157f1a197070e15 /src | |
parent | e1f8594cccf982ea8f1ba71023f5d525dd115d33 (diff) | |
parent | d78ba35bd3ca56d2f27a67703c834fb48acb6288 (diff) | |
download | vaadin-framework-5743430a20634a2a0d126e4e3866b6b03456f368.tar.gz vaadin-framework-5743430a20634a2a0d126e4e3866b6b03456f368.zip |
Merged changes from 6.6.
svn changeset:20759/svn branch:6.7
Diffstat (limited to 'src')
-rw-r--r-- | src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java | 10 | ||||
-rw-r--r-- | src/com/vaadin/terminal/gwt/server/ApplicationRunnerServlet.java | 2 |
2 files changed, 9 insertions, 3 deletions
diff --git a/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java b/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java index 95e7642424..eb141770e9 100644 --- a/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java +++ b/src/com/vaadin/terminal/gwt/server/AbstractApplicationServlet.java @@ -2230,12 +2230,18 @@ public abstract class AbstractApplicationServlet extends HttpServlet implements /** * Returns the path info; note that this _can_ be different than - * request.getPathInfo() (e.g application runner). + * request.getPathInfo(). Examples where this might be useful: + * <ul> + * <li>An application runner servlet that runs different Vaadin applications + * based on an identifier.</li> + * <li>Providing a REST interface in the context root, while serving a + * Vaadin UI on a sub-URI using only one servlet (e.g. REST on + * http://example.com/foo, UI on http://example.com/foo/vaadin)</li> * * @param request * @return */ - String getRequestPathInfo(HttpServletRequest request) { + protected String getRequestPathInfo(HttpServletRequest request) { return request.getPathInfo(); } diff --git a/src/com/vaadin/terminal/gwt/server/ApplicationRunnerServlet.java b/src/com/vaadin/terminal/gwt/server/ApplicationRunnerServlet.java index 10f0b94dda..ffc5d8cfc7 100644 --- a/src/com/vaadin/terminal/gwt/server/ApplicationRunnerServlet.java +++ b/src/com/vaadin/terminal/gwt/server/ApplicationRunnerServlet.java @@ -193,7 +193,7 @@ public class ApplicationRunnerServlet extends AbstractApplicationServlet { } @Override - String getRequestPathInfo(HttpServletRequest request) { + protected String getRequestPathInfo(HttpServletRequest request) { String path = request.getPathInfo(); if (path == null) { return null; |