Class StaticFileServer

java.lang.Object
com.pixelservices.flash.components.fileserver.StaticFileServer

public class StaticFileServer extends Object
StaticFileServer serves static files efficiently using an asset cache.
  • Constructor Details

    • StaticFileServer

      public StaticFileServer(FlashServer server)
      Constructs a StaticFileServer instance with the specified FlashServer.
      Parameters:
      server - the FlashServer instance used for registering routes
  • Method Details

    • serve

      public void serve(String endpoint, StaticFileServerConfiguration config)
      Serves static files from the specified directory.
      Parameters:
      endpoint - the base endpoint for serving static files
      config - the configuration for the static file server