public class SLDParserPlugin extends java.lang.Object implements StyleParserPlugin
| Modifier and Type | Class and Description |
|---|---|
static class |
SLDParserPlugin.ErrorHandler
A default error handler to avoid that error messages like "[Fatal Error] :1:1: Content is not allowed
in prolog." are directly printed to STDERR.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
STYLE_INDEX_REF_SEPARATOR
The separator between the path or url segment for loading the sld and an index of the style to obtain.
|
| Constructor and Description |
|---|
SLDParserPlugin() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<org.geotools.styling.Style> |
parseStyle(Configuration configuration,
org.springframework.http.client.ClientHttpRequestFactory clientHttpRequestFactory,
java.lang.String styleString)
Using the string load a style.
|
public static final java.lang.String STYLE_INDEX_REF_SEPARATOR
SLDs can contains multiple styles. Because of this there needs to be a way to indicate which style is referred to. That is the purpose of the style index.
public final java.util.Optional<org.geotools.styling.Style> parseStyle(@Nullable
Configuration configuration,
@Nonnull
org.springframework.http.client.ClientHttpRequestFactory clientHttpRequestFactory,
@Nonnull
java.lang.String styleString)
StyleParserPluginparseStyle in interface StyleParserPluginconfiguration - 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.