Package org.eclipse.jetty.embedded
Class FileServerXml
- java.lang.Object
-
- org.eclipse.jetty.embedded.FileServerXml
-
public class FileServerXml extends java.lang.Object
A Jetty FileServer.This server is identical to
FileServer
, except that it is configured via anXmlConfiguration
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)
-
-
-
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
-
-