aboutsummaryrefslogtreecommitdiff
path: root/webserver/src/main/java/fi/iki/elonen/WebServerPlugin.java
blob: 96db9a36474e3ba81c39b693bc214ab236f28279 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package fi.iki.elonen;

import java.io.File;
import java.util.Map;

/**
* @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, File file, String mimeType);
}