diff options
author | Gilberto Torrezan <gilberto-torrezan@users.noreply.github.com> | 2018-05-11 16:29:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-11 16:29:15 +0300 |
commit | 4b7d8943366f470d8e35f3633431d1ee28bbe44b (patch) | |
tree | 7c264b7e0937e604f85379034647408af24f1d69 /server/src | |
parent | 14ba0e784edbb01ee1f13fd3460db193c178f7cf (diff) | |
download | vaadin-framework-4b7d8943366f470d8e35f3633431d1ee28bbe44b.tar.gz vaadin-framework-4b7d8943366f470d8e35f3633431d1ee28bbe44b.zip |
Open methods to allow custom static file serving logic (#10910)
* Open methods to allow custom static file serving logic
The methods serveStaticResources and serveStaticResourcesInVAADIN have
been changed from private to protected to allow subclasses to change how
static files are served.
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/main/java/com/vaadin/server/VaadinServlet.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/server/src/main/java/com/vaadin/server/VaadinServlet.java b/server/src/main/java/com/vaadin/server/VaadinServlet.java index f325bc2d60..c298910c5a 100644 --- a/server/src/main/java/com/vaadin/server/VaadinServlet.java +++ b/server/src/main/java/com/vaadin/server/VaadinServlet.java @@ -716,8 +716,10 @@ public class VaadinServlet extends HttpServlet implements Constants { * otherwise. * @throws IOException * @throws ServletException + * + * @since */ - private boolean serveStaticResources(HttpServletRequest request, + protected boolean serveStaticResources(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { String pathInfo = request.getPathInfo(); @@ -754,8 +756,10 @@ public class VaadinServlet extends HttpServlet implements Constants { * @param response * @throws IOException * @throws ServletException + * + * @since */ - private void serveStaticResourcesInVAADIN(String filename, + protected void serveStaticResourcesInVAADIN(String filename, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { |