public interface StaticFileHandler extends Serializable
StaticFileServer
Modifier and Type | Method and Description |
---|---|
boolean |
serveStaticResource(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Serves a static resource for the requested path if a resource can be
found.
|
boolean serveStaticResource(javax.servlet.http.HttpServletRequest request, javax.servlet.http.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 © 2024. All rights reserved.