Package | Description |
---|---|
io.jooby | |
io.jooby.internal |
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.
|
static AssetSource |
AssetSource.webjars(ClassLoader loader,
String name)
Creates a webjar asset source.
|
Modifier and Type | Method and Description |
---|---|
default Route |
Router.assets(String pattern,
AssetSource... sources)
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.
|
Modifier and Type | Class and Description |
---|---|
class |
ClassPathAssetSource |
class |
FileDiskAssetSource |
class |
FolderDiskAssetSource |
Copyright © 2022. All rights reserved.