Class StyleParser


  • public final class StyleParser
    extends java.lang.Object
    Parse a style using all the available StyleParserPlugin registered with the spring application context.
    • Constructor Summary

      Constructors 
      Constructor Description
      StyleParser()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<? extends org.geotools.api.style.Style> loadStyle​(Configuration configuration, org.springframework.http.client.ClientHttpRequestFactory clientHttpRequestFactory, java.lang.String styleString)
      Load style using one of the plugins or return Optional.empty().
      • Methods inherited from class java.lang.Object

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

      • StyleParser

        public StyleParser()
    • Method Detail

      • loadStyle

        public java.util.Optional<? extends org.geotools.api.style.Style> loadStyle​(Configuration configuration,
                                                                                    @Nonnull
                                                                                    org.springframework.http.client.ClientHttpRequestFactory clientHttpRequestFactory,
                                                                                    java.lang.String styleString)
        Load style using one of the plugins or return Optional.empty().
        Parameters:
        configuration - the configuration for the current request.
        clientHttpRequestFactory - a factory for making http requests
        styleString - the style to load.