Interface StaticResourceBuilderFactory<R extends RequestContext<?>,W extends WebsocketContext<?>>


public interface StaticResourceBuilderFactory<R extends RequestContext<?>,W extends WebsocketContext<?>>
Factory to create static resources builders.
  • Method Summary

    Modifier and Type
    Method
    Description
    create(boolean isDir)
    Creates a static resources builder by specifying if the resource to build is a file or a directory, but without using a router.
    create(Router<R,W> router, boolean isDir)
    Creates a static resources builder by specifying if the resource to build is a file or a directory.
  • Method Details

    • create

      StaticResourceBuilder<R> create(boolean isDir)
      Creates a static resources builder by specifying if the resource to build is a file or a directory, but without using a router. The save() method will throw an expception if called. Only create() will be available.
    • create

      StaticResourceBuilder<R> create(Router<R,W> router, boolean isDir)
      Creates a static resources builder by specifying if the resource to build is a file or a directory.