Package org.eclipse.jetty.embedded
Class FastFileServer
- java.lang.Object
-
- org.eclipse.jetty.embedded.FastFileServer
-
public class FastFileServer extends java.lang.ObjectFast FileServer.This example shows how to use the Jetty APIs for sending static as fast as possible using various strategies for small, medium and large content.
The Jetty
DefaultServletdoes all this and more, and to a lesser extent so does theResourceHandler, so unless you have exceptional circumstances it is best to use those classes for static content
-
-
Constructor Summary
Constructors Constructor Description FastFileServer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ServercreateServer(int port, java.io.File resourceBase)static voidmain(java.lang.String[] args)
-
-
-
Method Detail
-
createServer
public static Server createServer(int port, java.io.File resourceBase)
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception- Throws:
java.lang.Exception
-
-