public interface StaticFileHandler extends Serializable
StaticFileServer| Modifier and Type | Method and Description |
|---|---|
boolean |
isStaticResourceRequest(HttpServletRequest request)
Checks if a static resource can be found for the requested path.
|
boolean |
serveStaticResource(HttpServletRequest request,
HttpServletResponse response)
Serves a static resource for the requested path if a resource can be
found.
|
boolean isStaticResourceRequest(HttpServletRequest request)
request - the request to checktrue if a static resource exists and can be sent as
a response to this request, false otherwiseboolean serveStaticResource(HttpServletRequest request,
HttpServletResponse response)
throws IOException
request - the request object to read fromresponse - the response object to write totrue if a file was served and the request has been
handled, false otherwise.IOException - if the underlying servlet container reports an exceptionCopyright © 2025. All rights reserved.