Class StaticFileServer
java.lang.Object
com.pixelservices.flash.components.fileserver.StaticFileServer
StaticFileServer serves static files efficiently using an asset cache.
-
Constructor Summary
ConstructorsConstructorDescriptionStaticFileServer
(FlashServer server) Constructs a StaticFileServer instance with the specified FlashServer. -
Method Summary
Modifier and TypeMethodDescriptionvoid
serve
(String endpoint, StaticFileServerConfiguration config) Serves static files from the specified directory.
-
Constructor Details
-
StaticFileServer
Constructs a StaticFileServer instance with the specified FlashServer.- Parameters:
server
- the FlashServer instance used for registering routes
-
-
Method Details
-
serve
Serves static files from the specified directory.- Parameters:
endpoint
- the base endpoint for serving static filesconfig
- the configuration for the static file server
-