Package com.vaadin.flow.server
Interface StaticFileHandler
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
StaticFileServer
public interface StaticFileHandler extends Serializable
Handler for static files. The handler should be responsible in identifying and serving the static files, based on the servlet request.- Since:
- 1.3
- Author:
- Vaadin Ltd.
- See Also:
StaticFileServer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanserveStaticResource(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Serves a static resource for the requested path if a resource can be found.
-
-
-
Method Detail
-
serveStaticResource
boolean serveStaticResource(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOExceptionServes a static resource for the requested path if a resource can be found.- Parameters:
request- the request object to read fromresponse- the response object to write to- Returns:
trueif a file was served and the request has been handled,falseotherwise.- Throws:
IOException- if the underlying servlet container reports an exception
-
-