Tries to load resources using directoryResolver in baseDirectory, and if that fails, tries jarResolver in baseResourcePath.
Tries to load resources using directoryResolver in baseDirectory, and if that fails, tries jarResolver in baseResourcePath.
The base path for the jarResolver.
The base directory for the directory resolver.
A partial function that loads resources from baseDirectory, or a jar.
Loads resources relative to the given baseDirectory.
Loads resources relative to the given baseDirectory. Re-reads the file from disk on every request. Intended for use only when developing locally, to enable saving a file, refreshing the browser, and immediately seeing the change.
The base directory (either absolute or relative to the process's working directory) to which to the requested resource path should be appended.
A partial function that loads resources from baseDirectory.
Constructs a ResourceHandler which tries to read resources from disk on every request, falling back to resources from the jar if needed.
Constructs a ResourceHandler which tries to read resources from disk on every request, falling back to resources from the jar if needed. This is intended for use in situations in local development (e.g. so one can save a resource, refresh the browser, and see the change immediately).
The base uri path handled by this handler (e.g. /admin/).
The resource path from which this handler will serve resources when they are not found in localFilePath.
The directory from which this handler will serve resources.
Constructs a ResourceHandler which returns resources from the jar
(via java's Class#getResourceAsStream
)
Constructs a ResourceHandler which returns resources from the jar
(via java's Class#getResourceAsStream
)
The base uri path handled by this handler (e.g. /admin/)
The resource path from which this handler will serve resources. (parameter names differ from the other constructors' for backwards compatibility)
Loads resources relative to the given baseResourcePath (via java's Class#getResourceAsStream
Loads resources relative to the given baseResourcePath (via java's Class#getResourceAsStream
The base resource path to which the requested resource path should be appended.
A partial function that loads resources from a jar.