Package org.mapfish.print.map.style
Class StyleParser
- java.lang.Object
-
- org.mapfish.print.map.style.StyleParser
-
public final class StyleParser extends java.lang.Object
Parse a style using all the availableStyleParserPlugin
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().
-
-
-
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 requestsstyleString
- the style to load.
-
-