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 TypeMethodDescriptionbooleancanServeUri(String uri, File rootDir) voidinitialize(Map<String, String> commandLineOptions) private StringreadSource(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:
canServeUriin interfaceWebServerPlugin
-
initialize
- Specified by:
initializein interfaceWebServerPlugin
-
readSource
-
serveFile
public NanoHTTPD.Response serveFile(String uri, Map<String, String> headers, NanoHTTPD.IHTTPSession session, File file, String mimeType) - Specified by:
serveFilein interfaceWebServerPlugin
-