Browse Source

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 years ago
parent
commit
4b7d894336
No account linked to committer's email address
1 changed files with 6 additions and 2 deletions
  1. 6
    2
      server/src/main/java/com/vaadin/server/VaadinServlet.java

+ 6
- 2
server/src/main/java/com/vaadin/server/VaadinServlet.java View File

* otherwise. * otherwise.
* @throws IOException * @throws IOException
* @throws ServletException * @throws ServletException
*
* @since
*/ */
private boolean serveStaticResources(HttpServletRequest request,
protected boolean serveStaticResources(HttpServletRequest request,
HttpServletResponse response) throws IOException, ServletException { HttpServletResponse response) throws IOException, ServletException {


String pathInfo = request.getPathInfo(); String pathInfo = request.getPathInfo();
* @param response * @param response
* @throws IOException * @throws IOException
* @throws ServletException * @throws ServletException
*
* @since
*/ */
private void serveStaticResourcesInVAADIN(String filename,
protected void serveStaticResourcesInVAADIN(String filename,
HttpServletRequest request, HttpServletResponse response) HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException { throws IOException, ServletException {



Loading…
Cancel
Save