Package fi.iki.elonen
Class MarkdownWebServerPlugin
java.lang.Object
fi.iki.elonen.MarkdownWebServerPlugin
- All Implemented Interfaces:
WebServerPlugin
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canServeUri
(String uri, File rootDir) void
initialize
(Map<String, String> commandLineOptions) private String
readSource
(File file) serveFile
(String uri, Map<String, String> headers, NanoHTTPD.IHTTPSession session, File file, String mimeType)
-
Field Details
-
LOG
logger to log to. -
processor
private final org.pegdown.PegDownProcessor processor
-
-
Constructor Details
-
MarkdownWebServerPlugin
public MarkdownWebServerPlugin()
-
-
Method Details
-
canServeUri
- Specified by:
canServeUri
in interfaceWebServerPlugin
-
initialize
- Specified by:
initialize
in interfaceWebServerPlugin
-
readSource
-
serveFile
public NanoHTTPD.Response serveFile(String uri, Map<String, String> headers, NanoHTTPD.IHTTPSession session, File file, String mimeType) - Specified by:
serveFile
in interfaceWebServerPlugin
-