public interface StaticFilesHandler
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
serve(java.lang.String path,
java.util.Map<java.lang.String,java.lang.String> headers)
Serve the request file if found, return code
null is file not found. |
@Nullable java.io.InputStream serve(java.lang.String path, java.util.Map<java.lang.String,java.lang.String> headers)
null
is file not found.path
- path of the reuqested file.headers
- list of headers to append to the Http response.null
if the file is not found.