Class FileServerXml


  • public class FileServerXml
    extends java.lang.Object
    A Jetty FileServer.

    This server is identical to FileServer, except that it is configured via an XmlConfiguration config file that does the identical work.

    • Constructor Summary

      Constructors 
      Constructor Description
      FileServerXml()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Server createServer​(int port, java.nio.file.Path baseResource)  
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

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

      • FileServerXml

        public FileServerXml()
    • Method Detail

      • createServer

        public static Server createServer​(int port,
                                          java.nio.file.Path baseResource)
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception