Class FileServer


  • public class FileServer
    extends java.lang.Object
    Simple Jetty FileServer. This is a simple example of Jetty configured as a FileServer.
    • Constructor Summary

      Constructors 
      Constructor Description
      FileServer()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Server createServer​(int port, Resource 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

      • FileServer

        public FileServer()
    • Method Detail

      • createServer

        public static Server createServer​(int port,
                                          Resource 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