瀏覽代碼

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.
tags/7.7.14
Gilberto Torrezan 6 年之前
父節點
當前提交
4b7d894336
No account linked to committer's email address
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6
    2
      server/src/main/java/com/vaadin/server/VaadinServlet.java

+ 6
- 2
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 {


Loading…
取消
儲存