@FunctionalInterface public interface CreateResourceUrl
The CreateResourceUrl interface is a functional interface that provides a method for creating a URL
for an HTML resource. It can be implemented by custom classes to define the behavior of generating a URL
for accessing HTML resources.
Example usage:
CreateResourceUrl createResourceUrl = (pageNumber, resource) -> "resource-" + pageNumber + "-" + resource.getFileName();
HtmlViewOptions htmlViewOptions = HtmlViewOptions.forExternalResources(createPageStream, createResourceStream, createResourceUrl);
HtmlViewOptions| Modifier and Type | Method and Description |
|---|---|
String |
invoke(int pageNumber,
Resource resource)
Represents the method that creates a URL for an HTML resource.
|
Copyright © 2024. All rights reserved.