Interface StyleParserPlugin

All Known Implementing Classes:
MapfishStyleParserPlugin, SLDParserPlugin

public interface StyleParserPlugin
A plugin used for loading Style objects from a string.

The string might be json, css, url, whatever.

  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<org.geotools.api.style.Style>
    parseStyle(Configuration configuration, org.springframework.http.client.ClientHttpRequestFactory clientHttpRequestFactory, String styleString)
    Using the string load a style.
  • Method Details

    • parseStyle

      Optional<org.geotools.api.style.Style> parseStyle(@Nullable Configuration configuration, @Nonnull org.springframework.http.client.ClientHttpRequestFactory clientHttpRequestFactory, @Nonnull String styleString)
      Using the string load a style. The string can be from a URL, xml, css, whatever. If the string references a file it MUST be within a subdirectory of the configuration directory.
      Parameters:
      configuration - the configuration being used for the current print.
      clientHttpRequestFactory - an factory for making http requests.
      styleString - the string that provides the information for loading the style.
      Returns:
      if this plugin can create a style form the string then return the style otherwise Optional.absent().