/** * <p>Returns the URL of an asset located in the assets package of the application.</p> * * <p>If the controller is not under the scope of a request, null is returned.</p> * * @param path the path * @return the asset url * @throws NullPointerException when the path argument is null */ public String byPath(String path) throws NullPointerException { return AssetServer.renderAssetURLByPath(AssetLocation.APPLICATION, path); }
/** * <p>Returns the URL of an asset located in the assets package of the application.</p> * * <p>If the controller is not under the scope of a request, null is returned.</p> * * @param path the path * @return the asset url * @throws NullPointerException when the path argument is null */ public String byPath(String path) throws NullPointerException { return AssetServer.renderAssetURLByPath(AssetLocation.APPLICATION, path); }
/** * <p>Returns the URL of an asset.</p> * * <p>If the controller is not under the scope of a request, null is returned.</p> * * @param location the asset location * @param uri the asset uri * @return the asset url * @throws NullPointerException when the path argument is null */ public String byPath(AssetLocation location, String uri) throws NullPointerException { return AssetServer.renderAssetURLByPath(location, uri); } }
/** * <p>Returns the URL of an asset.</p> * * <p>If the controller is not under the scope of a request, null is returned.</p> * * @param location the asset location * @param uri the asset uri * @return the asset url * @throws NullPointerException when the path argument is null */ public String byPath(AssetLocation location, String uri) throws NullPointerException { return AssetServer.renderAssetURLByPath(location, uri); } }