Package | Description |
---|---|
io.jooby |
Modifier and Type | Method and Description |
---|---|
static AssetSource |
AssetSource.create(ClassLoader loader,
String location)
Classpath asset source.
|
static AssetSource |
AssetSource.create(Path location)
Creates a source from given location.
|
Modifier and Type | Method and Description |
---|---|
default Route |
Router.assets(String pattern,
AssetSource... source)
Add a static resource handler.
|
Constructor and Description |
---|
AssetHandler(AssetSource... sources)
Creates a new asset handler.
|
AssetHandler(String fallback,
AssetSource... sources)
Creates a new asset handler that fallback to the given fallback asset when the asset
is not found.
|
Copyright © 2019. All rights reserved.