public class AssetController extends Object
| Constructor and Description |
|---|
AssetController(juzu.impl.asset.AssetManager manager) |
@Inject public AssetController(juzu.impl.asset.AssetManager manager)
public String url(String path) throws NullPointerException
Returns the URL of an asset located in the assets package of the application.
If the controller is not under the scope of a request, null is returned.
path - the pathNullPointerException - when the path argument is nullpublic String url(AssetLocation location, String uri) throws NullPointerException
Returns the URL of an asset.
If the controller is not under the scope of a request, null is returned.
location - the asset locationuri - the asset uriNullPointerException - when the path argument is nullCopyright © 2014 eXo Platform SAS. All rights reserved.