Package org.mapfish.print.map.style
Class ParserPluginUtils
java.lang.Object
org.mapfish.print.map.style.ParserPluginUtils
Utilities for creating parser plugins.
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 usingConfiguration.loadFile(String)
and using http.
-
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 usingConfiguration.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 requestsstyleRef
- the uri/file/else for attempting to load a styleloadFunction
- the function to call when data has been loaded.
-