Interface HashedFilesRegistry
public interface HashedFilesRegistry
- Author:
- Iván Zaera Avellón
-
Method Summary
Modifier and TypeMethodDescriptionvoidforEach(BiConsumer<String, String> biConsumer) getHashedFileURI(String unhashedFileURI) Get the URI of the hashed file associated to an unhashed file URI.getResource(String path) Get the URL of the file associated to a given URI.
-
Method Details
-
forEach
-
getHashedFileURI
Get the URI of the hashed file associated to an unhashed file URI. The URI is absolute to DXP server, i.e., it must contain a prefix when DXP is not running in the application server's ROOT context but must not contain the proxy path if it is configured.- Returns:
- a valid URI or null if hashed file does not exist
-
getResource
Get the URL of the file associated to a given URI. The URI is absolute to DXP server, i.e., it must contain a prefix when DXP is not running in the application server's ROOT context but must not contain the proxy path if it is configured.- Parameters:
path- a path like '/o/frontend-js-web/__liferay__/index.js' or '/o/frontend-js-web/__liferay__/index.(zXjA8D).js'- Returns:
- a valid URL or null if the file does not exist
-