Class ParserPluginUtils


  • public final class ParserPluginUtils
    extends java.lang.Object
    Utilities for creating parser plugins.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Optional<org.geotools.api.style.Style> loadStyleAsURI​(org.springframework.http.client.ClientHttpRequestFactory clientHttpRequestFactory, java.lang.String styleRef, java.util.function.Function<byte[],​@Nullable java.util.Optional<org.geotools.api.style.Style>> loadFunction)
      Load data using Configuration.loadFile(String) and using http.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • loadStyleAsURI

        public static java.util.Optional<org.geotools.api.style.Style> loadStyleAsURI​(org.springframework.http.client.ClientHttpRequestFactory clientHttpRequestFactory,
                                                                                      java.lang.String styleRef,
                                                                                      java.util.function.Function<byte[],​@Nullable java.util.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.