Package fi.iki.elonen

Class MarkdownWebServerPlugin

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.logging.Logger LOG
      logger to log to.
      private org.pegdown.PegDownProcessor processor  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canServeUri​(java.lang.String uri, java.io.File rootDir)  
      void initialize​(java.util.Map<java.lang.String,​java.lang.String> commandLineOptions)  
      private java.lang.String readSource​(java.io.File file)  
      NanoHTTPD.Response serveFile​(java.lang.String uri, java.util.Map<java.lang.String,​java.lang.String> headers, NanoHTTPD.IHTTPSession session, java.io.File file, java.lang.String mimeType)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOG

        private static final java.util.logging.Logger LOG
        logger to log to.
      • processor

        private final org.pegdown.PegDownProcessor processor
    • Constructor Detail

      • MarkdownWebServerPlugin

        public MarkdownWebServerPlugin()
    • Method Detail

      • canServeUri

        public boolean canServeUri​(java.lang.String uri,
                                   java.io.File rootDir)
        Specified by:
        canServeUri in interface WebServerPlugin
      • initialize

        public void initialize​(java.util.Map<java.lang.String,​java.lang.String> commandLineOptions)
        Specified by:
        initialize in interface WebServerPlugin
      • readSource

        private java.lang.String readSource​(java.io.File file)