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