Class StaticFileController

java.lang.Object
org.eblocker.server.http.server.StaticFileController

public class StaticFileController extends Object
A RestExpress controller for serving static files (HTML, JS, CSS, ...)
  • Constructor Details

    • StaticFileController

      @Inject public StaticFileController(String documentRoot, Map<String,String> aliases, int cacheTime, String dashboardHost, String httpsWizardPath)
    • StaticFileController

      public StaticFileController(String documentRoot, int cacheTime, String dashboardUrls, String httpsWizardPath)
  • Method Details

    • read

      public Object read(org.restexpress.Request request, org.restexpress.Response response) throws IOException
      NOTE: this method is called from multiple threads simultaneously
      Parameters:
      request -
      response -
      Returns:
      Throws:
      IOException