Class ParserPluginUtils

java.lang.Object
org.mapfish.print.map.style.ParserPluginUtils

public final class ParserPluginUtils extends Object
Utilities for creating parser plugins.
  • Method Details

    • loadStyleAsURI

      public static Optional<org.geotools.api.style.Style> loadStyleAsURI(org.springframework.http.client.ClientHttpRequestFactory clientHttpRequestFactory, String styleRef, Function<byte[],@Nullable Optional<org.geotools.api.style.Style>> loadFunction)
      Load data using Configuration.loadFile(String) and using http. If data is able to be loaded it will be passed to the loadFunction to be turned into a style.
      Parameters:
      clientHttpRequestFactory - the factory to use for http requests
      styleRef - the uri/file/else for attempting to load a style
      loadFunction - the function to call when data has been loaded.