blob: 08a9f22cd2610ffa7e8d5d013b149080e1d0fa6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package fi.iki.elonen;
import java.io.File;
import java.util.Map;
import fi.iki.elonen.NanoHTTPD.IHTTPSession;
/**
* @author Paul S. Hawke (paul.hawke@gmail.com)
* On: 9/14/13 at 8:09 AM
*/
public interface WebServerPlugin {
void initialize(Map<String, String> commandLineOptions);
boolean canServeUri(String uri, File rootDir);
NanoHTTPD.Response serveFile(String uri, Map<String, String> headers, IHTTPSession session, File file, String mimeType);
}
|