diff options
author | Ilia Motornyi <elmot@vaadin.com> | 2018-05-22 13:23:18 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-22 13:23:18 +0300 |
commit | ec6a2c66958dc43c6f3fe3962e80e74e503ca4cf (patch) | |
tree | d4614063e6de8138b5ea806e71753fe999983897 /server/src | |
parent | eb52b41e98165abf097191dc525831598cf9c217 (diff) | |
download | vaadin-framework-ec6a2c66958dc43c6f3fe3962e80e74e503ca4cf.tar.gz vaadin-framework-ec6a2c66958dc43c6f3fe3962e80e74e503ca4cf.zip |
Open methods to allow custom static file serving logic (#(#10921)
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 06a3325f9e..0efdcb406e 100644 --- a/server/src/main/java/com/vaadin/server/VaadinServlet.java +++ b/server/src/main/java/com/vaadin/server/VaadinServlet.java @@ -777,8 +777,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 filePath = getStaticFilePath(request); @@ -799,8 +801,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 { |