Interface WebResourceFormatter

All Superinterfaces:
WebResourceFilter
All Known Implementing Classes:
CssWebResource, JavascriptWebResource, PrefetchLinkWebResource

public interface WebResourceFormatter extends WebResourceFilter
A formatter to format web resources into HTML.

The WebResourceFilter.matches(String) method should be called before calling formatResource(String, Map), to ensure correct formatting of the resource.

  • Method Details

    • formatResource

      String formatResource(String url, Map<String,String> parameters)
      Returns a formatted resource string.
      Parameters:
      url - url path to the resource
      parameters - a Map of resource parameters
      Returns:
      a formatted resource String.