Package org.mapfish.print.map.style
Interface StyleParserPlugin
-
- All Known Implementing Classes:
MapfishStyleParserPlugin
,SLDParserPlugin
public interface StyleParserPlugin
A plugin used for loadingStyle
objects from a string.The string might be json, css, url, whatever.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<org.geotools.api.style.Style>
parseStyle(Configuration configuration, org.springframework.http.client.ClientHttpRequestFactory clientHttpRequestFactory, java.lang.String styleString)
Using the string load a style.
-
-
-
Method Detail
-
parseStyle
java.util.Optional<org.geotools.api.style.Style> parseStyle(@Nullable Configuration configuration, @Nonnull org.springframework.http.client.ClientHttpRequestFactory clientHttpRequestFactory, @Nonnull java.lang.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().
-
-