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